Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Rename
Message
De
21/04/2006 16:32:32
 
 
À
21/04/2006 15:14:10
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:
01115580
Vues:
7
>>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform