Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Replace field with blank (space)
Message
From
27/03/2007 10:11:36
 
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:
01208808
Views:
23
hi,
convert all fields to zeroz,character type and numaric type???
thanks
>
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform