Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Evaluate() on a built field name
Message
From
18/01/2006 01:31:16
 
 
To
17/01/2006 12:10:01
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01087596
Message ID:
01087846
Views:
16
>I am running a loop to fill a object from other values. The object is build with
>
>SCATTER NAME loPaid MEMO BLANK
>
>
>Afterwards I start filling it. But I get an error at this point:
>
>loPaid.EVALUATE("COMMENT" + PADL(lnloop, 2, "0")) = ALLTRIM(lcRequest.COMMENT)
>
>"COMMENT" + PADL(lnloop, 2, "0") = "COMMENT02"
>lnloop = 2
>and lcRequest.comment = " "
>
>Do I need to do this another way?
>
>TIA
>Beth

Beth,

Another possibility
x = PADL(lnloop, 2, "0")
loPaid.Comment&x = ALLTRIM(lcRequest.COMMENT)

or

x = 'Comment' + PADL(lnloop, 2, "0")
loPaid.&x = ALLTRIM(lcRequest.COMMENT)
Gregory
Previous
Reply
Map
View

Click here to load this message in the networking platform