syntax error that shouldn't be
Richard Kreiss
rkreiss at verizon.net
Fri Mar 14 12:53:32 PDT 2014
> -----Original Message-----
> From: filepro-list-bounces+rkreiss=verizon.net at lists.celestial.com
> [mailto:filepro-list-bounces+rkreiss=verizon.net at lists.celestial.com] On
> Behalf Of Kenneth Brody
> Sent: Friday, March 14, 2014 3:24 PM
> To: Fairlight; filePro Mailing List
> Subject: Re: syntax error that shouldn't be
>
> On 3/13/2014 8:23 PM, Fairlight wrote:
> > Take this:
> >
> > Then: declare MyTest(40,*)
> > Then: MyTest="Small String"
> > Then: msgbox "orig len:"<len(MyTest)
> > Then: msgbox "new len:"<len(""{MyTest{"")
> >
> > Syntax check coughs at the first quote in "" in the pushleft inside
len().
> > This is perfectly valid syntax...or should be. len() is documented as
> > taking an expression, not simply a field or variable name.
> >
> > 5.0.14R4
>
> My docs say that LEN() and EDIT() only take fields, not expressions.
>
> --
> Kenneth Brody
Ken,
I tested Mark's programming and found that len(MYTest) does show a length of
40.
: MyTest="Small String"{""
I just tested msgbox "New Len:"<dlen(MyTest) and it also showed a length of
40. Should that not have been 10?
Richard Kreiss
More information about the Filepro-list
mailing list