Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Change something in a string
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
Visual FoxPro
Divers
Thread ID:
01354941
Message ID:
01354948
Vues:
15
Hello Sergy,

I tried this code...
A= "1234"
STUFF( A , 1 , 2 , "BB" )
WAIT WINDOW A

I have NO error !????? Why ?

*------------
A= "1234"
A = STUFF( A , 1 , 2 , "BB" )
WAIT WINDOW A
give a good result

It is good also ?

BHT


>
>lcStr = "0000000"
>
>lcStr = "BB" + RIGHT(lcStr,5)
>* or
>lsStr = STUFF(lcStr, 1, 2, "BB")
>...
>
>
>
>>
>>How To Change something in a string ?
>>
>>A = "0000000" TO Have A="BB00000"
>>
>>REPLACE( A , 1 , 2 , "BB" )
>>
>>
>>Bonne soirée
>>Good evening
>>
>>BHT
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform