Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Rename
Message
De
21/04/2006 18:51:30
 
 
À
21/04/2006 16:32:32
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Re: Rename
Versions des environnements
Visual FoxPro:
VFP 9
Database:
Visual FoxPro
Divers
Thread ID:
01115477
Message ID:
01115612
Vues:
9
>>>i try as under, error message Object "main1" is not found
>>>
>>>USE main1
>>>main1.date = STRTRAN(main1.date, "/", "_")&&
>>>
>>
>>Then you should not be asking us. You are opening a table called "main1".
>>If the table does not open or is not found, look to see why. It does not exist, or is not in the search path, or you are not using the correct table name, or...
>>
>>Another issue: Is main1.date a date-type field?
>>If it is, you cannot do STRTRAN() on it as it only works for character fields.
>
>The problem is that you cant use the syntax alias.field = value . You need to use the REPLACE command to update a table value. If you wanted to use a memory varible use either m. or just the variable name.


Indeed Rich. I also missed that one! <lol>


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform