Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Replace field with blank (space)
Message
De
27/03/2007 12:02:04
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01208793
Message ID:
01208875
Vues:
24
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform