Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Change something in a string
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01354941
Message ID:
01354948
Views:
16
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform