Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Evaluate()????
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00136188
Message ID:
00136212
Vues:
15
>>>>>Hi all,
>>>>>
>>>>>I'm trying to use a generic statement to get the value of a specific field in a record by using evaluate(). Each time I try it I get a syntax error. Here's the code I'm using, any ideas??
>>>>>
>>>>>lcField = 'MyTable.'+field(lnCnt)
>>>>>
>>>>>lnATAFValue = eval(lcField)
>>>>>
>>>>>TIA
>>>>
>>>>Change it to
>>>>
>>>>lnATAFValue = (lcField)
>>>>
>>>>Bye
>>>>Jayesh
>>>
>>>Sorry friend,
>>
>> It was my mistake. Use
>>
>>lnATAFValue = &lcField instead.
>>
>>Bye
>>Jayesh
>
>Jayesh,
>
>That gives me an error as well. The field is numeric, I need to get the value in the field, not the field name. Sorry if i wasn't clear the first time.

He there,

I rectified my reply. Hope you looked at it.

Bye
Jayesh
- Jayesh
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform