Discussion:
Turning a textbox container into a integer?
(too old to reply)
s***@hotmail.com
2005-12-27 18:26:04 UTC
Permalink
Hi,

I have a text box in vbdos it holds the number "3"

I need to use this container for changing desktop color.

Heres the normal way :

SCREEN.ControlPanel(DESKTOP_BACKCOLOR) = "3"


I need to do something like this :

SCREEN.ControlPanel(DESKTOP_BACKCOLOR) = MyTextBox.Text

But get the error 'mis match'

I don't think VBDOS likes this,,,,, unlike vb6.0

Is there a way I can turn the number i have in the textbox into a
readable integer so it's treated like "3" after :
SCREEN.ControlPanel(DESKTOP_BACKCOLOR) =

Thanks,
Stephen Howe
2005-12-28 17:34:49 UTC
Permalink
Post by s***@hotmail.com
SCREEN.ControlPanel(DESKTOP_BACKCOLOR) = MyTextBox.Text
Try

SCREEN.ControlPanel(DESKTOP_BACKCOLOR) = VAL(MyTextBox.Text)

Stephen Howe
s***@hotmail.com
2005-12-28 18:17:09 UTC
Permalink
Thanks m8, that sorted it very well, a star.

Loading...