Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Replace field with blank (space)
Message
 
 
To
27/03/2007 09:56:51
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01208793
Message ID:
01208803
Views:
20
select myTable
local lnI
local array laFields[1]
afields(laFields)
for lnI = 1 to alen(laFields,1)
    blank for empty(&laFields[lnI,1])
next
From the top of my head.

>hi how are you,
>mean
>
>USE mytable
>SCAN FOR FIELDS=0
>REPLACE ALL FIELDS WITH balnk
>*BLANK for Fields = 0 in myTable
>ENDSCAN
>
>
>>>hi all,
>>>i need to replace space to my table where i found zero?
>>>
>>>USE mytable
>>>SCAN FOR FIELDS=0
>>>REPLACE ALL FIELDS WITH SPACE()
>>>ENDSCAN
>>>
>>>thanks
>>
>>You can not do it, since the numeric field can not be replaced with character.
>>
>>You can use BLANK command instead, e.g.
>>
>>BLANK for Fields = 0 in myTable
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform