Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Replace field with blank (space)
Message
From
27/03/2007 12:02:04
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
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:
01208875
Views:
23
>Yes, this code will make all empty data (character, numeric, date) to be blank.
>If you want numeric only to be blank, you can check for field type in the loop laFields[m.lnI,2] = 'N'
>
>>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
>>>

Actually, it would blank the whole records. You probably wanted
select myTable
local lnI,laFields[1]
afields(laFields)
for lnI = 1 to alen(laFields,1)
    blank fields (laFields[lnI,1]) for empty(&laFields[lnI,1])
next

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform