Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Evaluate() on a built field name
Message
De
17/01/2006 12:37:10
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Database:
Visual FoxPro
Divers
Thread ID:
01087596
Message ID:
01087613
Vues:
15
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform