Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Evaluate() on a built field name
Message
From
17/01/2006 12:37:10
 
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:
01087613
Views:
14
Hi, Chad

It is the first one. I gave you the stars, because you beat Sergey by 8 minutes! ;-)

Thanks,
Beth

>Beth,
>
>I think you are wanting something like this:
>
>STORE ALLTRIM(lcRequest.COMMENT) TO ('loPaid.COMMENT" + PADL(lnloop, 2, '0'))
>or
>STORE ALLTRIM(lcRequest.COMMENT) TO EVALUATE('loPaid.COMMENT" + PADL(lnloop, 2, '0'))
>
>I'm not sure if the EVALUATE is necessary or if the name substitution will suffice.
>
>HTH,
>Chad
>
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform