on 07-26-2017 4:24 PM
Hi,
In ABSL I need to assign a value to a variable of TIME_Duration type (from Standard BO).
I found no functions like "ParseFromString" converting a string into the value of such type (Duration type does not fit).
Is there some workaround for that type?
Thank you.
Thank you, Horst,
Eventually, I fingered out we can just assign a plain string to a variable of the type, for example, we can act in such a manner:
var x : TIME_Duration;
x = "PT0H5M0S";
The warning message which appears on this code ("..can not be assigned..") can be ignored. It will be work properly anyway.
Thank you.
Best regards,
Aleksei
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Aleksei,
From the Repository Explorer I got this definition
TIME_Duration is a restriction of Duration where only values for hours,
minutes, seconds and fractions of seconds are allowed.
The representation is as follows:
PTnHnMnS
Example:
PT4H12M40S
There is no library function for this special case of a Duration. 😞
So if you have the hours, minutes, and seconds you need to build up the TIME_Duration by yourself.
Sorry,
. Horst
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
10 | |
6 | |
5 | |
5 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.