NUMBER_Null is negative value

forum.gupta.bugreport (2005-2010)
Jarmo Muukka

NUMBER_Null is negative value

Post by Jarmo Muukka » 06 Apr 2006, 10:08

 Posted by:  Jarmo Muukka 

Hello!

Today I realised that Centura treats NUMBER_Null as negative value. I used
version CTD 2.1. Version 1.1 has the same problem, but I do not know about
newer versions.

I had code like:

If value = 0
Set value = NUMBER_Null
...
If value < 0
! give error message because user cannot enter negative values

I had to modify it to
If value != NUMBER_Null AND value < 0
! ...

To my logic this is a bug. Others may think differently.

Attached is a file which demonstrates it.

JMu

You do not have the required permissions to view the files attached to this post.

Jenny Redenheim

Re: NUMBER_Null is negative value

Post by Jenny Redenheim » 06 Apr 2006, 10:41

 Posted by:  Jenny Redenheim 

That's the way it always been.
Use this instead, and you wont need two comparisons:

if not value > 0
!error

//Jenny

Jeff Luther
Site Admin
Site Admin
United States of America
Posts: 2370
Joined: 04 Mar 2017, 18:34
Location: Palm Springs, California

Re: NUMBER_Null is negative value

Post by Jeff Luther » 06 Apr 2006, 17:03

 Posted by:  Jeff Luther 

Or compare it to null:

If value = NUMBER_Null
...

Best Regards,
Jeff Luther/PC Design
info: www.pulpcards.com/gupta/

Artur Koch

Re: NUMBER_Null is negative value

Post by Artur Koch » 07 Apr 2006, 08:38

 Posted by:  Artur Koch 

Hi,

i solved this problem with :

if 1 * value > 0

regards

Artur

Jenny Redenheim

Re: NUMBER_Null is negative value

Post by Jenny Redenheim » 07 Apr 2006, 10:59

 Posted by:  Jenny Redenheim 

This will not catch the errors for the negative numbers.

/Jenny

Return to “gupta.bugreport”

Who is online

Users browsing this forum: [Ccbot] and 0 guests