Information générale
Catégorie:
Codage, syntaxe et commandes
Thanks for the response. I was just curious if there was any syntax that supported this that I didn't know about. I was in a stored procedure that will work on the current ALIAS() and had a comparison statement:
lcAlias = ALIAS()
IF lcMyVar = &lcAlias..'fcModBy'
.....
wondered if there was a simple way to reference the field 'fcmodby' in the current alias without the Alias in a way that distinguishes it from a variable name.
>>Is there a way to reference a field without specifiying the currently selected alias, something in the flavor of m.Fieldname? I think I've seen this in old Dbase code, just don't know if there is a way to do it in VFP.
>
>You don't need in alias referencing to current table.fields. Also, many commands support IN close to do it in different work areas. However, using alias is the way to make code more readable.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement