CelticBhoy schrieb:
> I have just one problem with this method of updating the totals, if I delete
> the value contained in one of the valuebox items, I get this error :-
> 
> Type mismatch, wanted number got null instead.

As far as I know: a Gambas feature :-)

If you put an empty string into a Val() function, this is the answer. So 
you will have to check if it's Null first:

IF NOT Null(Val(ValueBox1.Text)) THEN
   x = Val(ValueBox1.Text)
ELSE
   x = 0
END IF

At least this is what I've been doing since Benoit taught me to do so...

Rolf


------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to