[V4WS] Another problem with numeric fields?

Ruslan Zasukhin sunshine at public.kherson.ua
Tue Feb 10 09:42:36 CST 2004


on 2/10/04 7:51 AM, Solon Morse at solon at mail.enaturalist.org wrote:

> When iterating through a cursor, V4WS 1.10 seems to report null and 0 as 0
> for numeric fields -- or at least websiphon interprets both as 0.
> 
> repeat with x from 1 to recordCount
> valGoToRecord( curs, x );
> var = valGetField( curs, field );
> end repeat;
> 
> Records sort properly, but var is set to 0  whether the field holds zero or
> nothing.  Shouldn't I get at least "" for null?

I am sure that to check if value is NULL,
You have special function valIsNull()

You need at  first check by it NULL value,
And if you see it is not NULL, then do GetField()


> If I do valGetRecord(curs,x), empty fields return <null> and 0 returns 0. I
> would do it this way, but then my methods fields return <null> when they
> shouldn't.
> 
> Do you think this a Siphon coercion problem, a Valentina problem or am I
> missing something?

-- 
Best regards,
Ruslan Zasukhin      [ I feel the need...the need for speed ]
-------------------------------------------------------------
e-mail: ruslan at paradigmasoft.com
web: http://www.paradigmasoft.com

To subscribe to the Valentina mail list go to:
http://lists.macserve.net/mailman/listinfo/valentina
-------------------------------------------------------------



More information about the Valentina mailing list