Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
EVAL() in report
Message
From
02/04/2008 17:24:41
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
EVAL() in report
Miscellaneous
Thread ID:
01307765
Message ID:
01307765
Views:
76
Hi,

I run a report and get a cursor and one of the fields (mMessage) is a memo field that contains something like this:

'Customers in the list are being evaluated, the Customer Name is '+RTRIM(cName)+' and is active'

where cName is another field in the cursor. The string is actually much bigger but I made it smaller for the example.

So in my report I add a field and in the expression I write 'EVAL(mMessage)' and this is when it gets funky.

First, the example above works, but if I move the RTRIM() command to another place like this:

'Customers in the list '+RTRIM(cName)+' are being evaluated, the Customer Name is and is active'

then I get an "Command contains unrecognized phrase/keyword", furthermore if I just do a straight string:

'Customers in the list are being evaluated, the Customer Name is and is active'

I also get the same error. Why would it work with the first example and not the other 2?

Thanks.
Next
Reply
Map
View

Click here to load this message in the networking platform