Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Simple replace, or so I thought!!!!
Message
 
À
13/12/1999 07:18:28
Jolene Dicks
Human Resources Development Canada
St. John's, Terre-Neuve, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00302621
Message ID:
00302624
Vues:
15
>Hi,
>
>Is there anything wrong with this statement?
>
>
>replace allt(left(dssmain.dlcinc_m95,2)) with "19"
>
>
>Please advise?

Jolene,

Yes there is something wrong with it. The REPLACE command takes a field name as the first argument not an expression. What, exactly, are you trying to do? Is it to replace the first two characters of the field with "19"? If that's it then this should work;

REPLACE dlcinc_m95 WITH "19" + SUBSTR(dlcinc_m95,3)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform