Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
String and scan
Message
From
15/01/2002 04:07:37
 
 
To
15/01/2002 03:40:17
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00604740
Message ID:
00604746
Views:
23
>Hi all,
>
>I want to change the string 'a 1' to 'a1'. I have tired it with alltrim() method but it cannot work. any other functions can do it?

strtran() or chrtran()

>
>For scan...endscan. I guess it is search reccord one by one. i have the following code:
>proc co_test
>use "c:\ccs program\conversion\cbpo\company.dbf"
>
>
>local cor_cbpol
>local cor_cbpom
>local cor_cbpos
>
>
>scan
> if empty(alltrim(co_refl))=.f. and empty(alltrim(cbpo_refl))=.t. lower
> > update company set cbpo_refl='abc'
> endif
>
>endscan
>retu
>
>I just want some particular records which fullfil the condtion to be updated but all records are updated? why?
>
>Linda
Previous
Reply
Map
View

Click here to load this message in the networking platform