Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Handling keywords as field names
Message
De
28/07/1998 10:17:31
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00121789
Message ID:
00121966
Vues:
16
Maybe 'm doing something wrong, but when I use the "AS", the changes are not propogated to the base field. It's like VFP thinks it is a calculated field, and does not know it is really just a rename of a field.

I agree with the "mytable.fieldname" solution. Unfortunately, I'm trying to use TABLEUPDATE(). I think it generates SQL updates like "UPDATE product SET desc = 'XXX'", instead of "UPDATE product SET product.desc = 'XXX'".

I've tried to combine the two solutions by naming a field desc AS "product.desc", hoping this would cause the correct UPDATE syntax to be generated by TABLEUPDATE(), but no luck here either.


Bob

>For most functions, you can usually get around the problem by explicitly using the field name with the table name -- mytable.fieldname or mydb!mytable.fieldname
>
>Jim's suggestion is good, too, but I have not tried to utilize *KEYFIELD AS "NEWFIELD"* in a view. As long as VFP knows which field in the originating table it goes to then it would work.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform