syntax error that shouldn't be

Richard Kreiss rkreiss at gccconsulting.net
Fri Mar 14 11:57:07 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 Fairlight
> Sent: Thursday, March 13, 2014 8:24 PM
> To: filePro Mailing List
> Subject: syntax error that shouldn't be
> 
> 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
> 
> mark->
> --
> Fairlight Consulting
> http://www.fairlite.com
> fairlite at fairlite.com
> (502) 509-3840


Mark,

I don't think you can have a push left as you indicated.

But:

Then: declare MyTest(40,*)
Then: MyTest="Small String"
Then: msgbox "orig len:"<len(MyTest)

This passes syntax - The push left works within the parentheses and the < leaves a space.  
Then: msgbox "new len:"<(""{len{MyTest){"")


Richard Kreiss
GCC Consulting

Office: 410-653-2813










More information about the Filepro-list mailing list