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 is stored in the $object as a datetime.


On Tue, Aug 16, 2016 at 11:34 PM, Kirk Brooks <[email protected]> wrote:

> 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, Lee Hinde <[email protected]> wrote:
>
> > 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)
>
>
**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to