syntax error that shouldn't be
Bruce Easton
bruce at stn.com
Sat Mar 15 09:16:56 PDT 2014
On 3/14/14 4:18 PM, Fairlight wrote:
> On Fri, Mar 14, 2014 at 03:23:41PM -0400, Kenneth Brody thus spoke:
>> My docs say that LEN() and EDIT() only take fields, not expressions.
> Right from the in-cabe help file:
>
> LEN (exp) Finds length of field or expression.
>
> I could screenshot it, if you'd like.
>
> mark->
Yeah, that cabe help is incorrect. I don't ever remember len being able
to take a literal expression.
The online manual at fptech does state " Where "f "is a dummy or real
field", although you can use a long variable name in the function which
can be uncast for length (fp v. 5.0.14):
Then: declare origexp(40,*)
Then: origexp = "testing"
.
.
Then: declare shortexp
Then: shortexp=""{origexp{""
Then: msgbox "Length of trimmed origexp = "<len(shortexp)
This len function here will return "7".
Bruce
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.celestial.com/pipermail/filepro-list/attachments/20140315/e630fce8/attachment.html
More information about the Filepro-list
mailing list