Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I check if numeric field is 0 or blank
Message
From
26/08/1999 10:32:14
 
 
To
26/08/1999 10:19:35
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00257901
Message ID:
00257906
Views:
20
>old record example
>Sample# 1234567
>test1result 2.45
>test2result
>test3result 1.12
>..test55result 4.24
>
>I only want to copy where there is a value, either zero or a number.

Is testResult2 a character field or a numeric field? If it's a character field, then check ISBLANK(); if its numeric and NULL is a possible value, use ISNULL() to check for 'empty' values.

>I can't find a way to exclude test2 since it is blank. (There 55 result fields but usually only 5 - 10 have a value).
>new record layout
>Sample# Test# Result
>
>Something like
> Select 1
> IF !(ALLTRIM(STR(test1result)) = " ") then
> value = test1result
> select 2
> append blank
> replace sample# with samplevaraible
> replace test# with 5
> replace result with value
> ENDIF
>
>Thanks for any help.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform