Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Replace .NULL. values in a cursor
Message
From
06/10/2006 10:35:55
 
 
To
06/10/2006 10:24:22
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01160024
Message ID:
01160035
Views:
8
>This will work with character fields, but do I have to build in conditional IIF logic for all field types?
>
>
>
>SCAN
>	SELECT iaccts
>	SCAN
>		FOR I = 1 TO FCOUNT()
>			REPLACE (FIELD(I)) WITH IIF(EVALUATE(FIELD(I))='.NULL.','',EVALUATE(FIELD(I)))
>		NEXT
>	ENDSCAN
>ENDSCAN
>
Probably, assuming you have other field types in your tables. But I'd use the NVL() function istead of an IIF(EVALUATE()).

Regards,
Jim
Previous
Reply
Map
View

Click here to load this message in the networking platform