SphereServer BugTracker - SphereServer
View Issue Details
0001510SphereServerexecutable - genericpublic03-09-08 22:3626-10-08 20:12
dask 
MrSugarCube 
normalminoralways
resolvedfixed 
 
20-09-2009, 0.56b Prerelease 
08-02-2008
None
None
0001510: check negativ numbers with isnum didn´t work
see this script code

IF !(<isnum <argtxt(9)>>)
         smsg @0,3 Please a Number!
        dialog d_axis_small 3
  ELSEIF (<dargtxt(9)> <= 0)
      smsg @0,3 Please a Number higher than zero!
....

If I write a negative number for example -10 in my textentry field and push the button the first if section is fired and not the second one.
yes I can ask at first if the number is negative and so this if section is wright but for me it is a bug that you cant check negative numbers with isnum.
maybe it´s only in gumps and with textentrys. havent test it in a normal script.
No tags attached.
Issue History
03-09-08 22:36daskNew Issue
03-09-08 22:36daskNightly Version => 08-02-2008
03-09-08 22:36daskExperimental Flags => None
03-09-08 22:36daskOption Flags => None
26-10-08 20:12MrSugarCubeStatusnew => resolved
26-10-08 20:12MrSugarCubeFixed in Version => 0.56c Nightly
26-10-08 20:12MrSugarCubeResolutionopen => fixed
26-10-08 20:12MrSugarCubeAssigned To => MrSugarCube

There are no notes attached to this issue.