Paste this in your v15 scratch method and run it.:
*C_OBJECT*($object)
*C_DATE*($date)
*C_TEXT*($key)
$key:="current_date"
*OB SET*($object;$key;*Current date*(*))
$date:=*OB Get*($object;$key)
$date:=*OB Get*($object;$key;Is date)
*
Yeah, if you don't specify the return type it comes back as text - usually,
ie.
C_OBJECT($object)
C_DATE($date)
C_TEXT($key;$dateStr)
$key:="current_date"
OB SET($object;$key;Current date(*))
$dateStr:=OB Get($object;$key)
$date:=OB Get($object;$key;Is date)
On Tue, Aug 16, 2016 at 5:46 PM, L
> Le 17 août 2016 à 08:34, Kirk Brooks a écrit :
>
> Yeah, if you don't specify the return type it comes back as text - usually,
> ie.
>
> C_OBJECT($object)
> C_DATE($date)
> C_TEXT($key;$dateStr)
>
> $key:="current_date"
>
> OB SET($object;$key;Current date(*))
> $dateStr:=OB Get($object;$ke
> Le 17 août 2016 à 09:12, Bertrand SOUBEYRAND a écrit :
>
>> Yeah, if you don't specify the return type it comes back as text - usually,
>> ie.
>>
>> C_OBJECT($object)
>> C_DATE($date)
>> C_TEXT($key;$dateStr)
>>
>> $key:="current_date"
>>
>> OB SET($object;$key;Current date(*))
>> $dateStr:
It's the 'usually' part that caught me. This is the first time I've run
into it.
*C_LONGINT*($long;$newlong)
$long:=1
*OB SET*($object;"long";$Long)
$newlong:=*OB Get*($object;"long")
Works fine.
Also note (this may be documented, but I didn't notice), the date field in
the original example
Lee,
Yeah, since there is no 'date' type in javaScript they store a datestamp
and then OB GET($obj;"key" Is date) function gets and returns just the date
value. I expect it does the same with time. And to Bertrand's point 4D must
be doing some sort of automatic conversion with some variable types w
6 matches
Mail list logo