Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FIELD() Function
Message
De
29/03/2004 17:39:26
Elyse Pomerantz
Dynamic Data Concepts, Inc.
Brooklyn, New York, États-Unis
 
 
À
26/03/2004 14:12:10
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00890059
Message ID:
00890616
Vues:
16
>>I just upgraded to VFP8 and I seem to have found another problem. There is a new parameter (nFlags) for the FIELD function that determines whether the field name or caption is returned. From what I see, it looks like the default is to return the caption, which is different than VFP7 and my code is crashing. This doesn't make sense - can anyone explain it?
>
>By default (w/o third parameter) the FIELD() function returns field name. Can you provide more details?

My code looks like this:
lcFldState=SUBSTR(GETFLDSTATE(-1),2)
lcField=FIELD(AT("2",lcFldState,1)) (where AT("2",lcFldState,1) returns 42)

I recompiled everything in VFP8. But when I step through the program, the value of lcField is the field's caption, not its name.
Elyse Pomerantz
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform