Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Replace .NULL. values in a cursor
Message
From
06/10/2006 11:02:09
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
 
 
To
06/10/2006 10:29:28
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:
01160059
Views:
10
>>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
>>
>
>See Set NullDisplay in help.

That's cool, but I need to actually replace the values. The index gets confused if there are .NULL. values in the fields contained in the tag.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform