Discussion:
SCREEN.ControlPanel(DESKTOP_BACKCOLOR)
(too old to reply)
s***@hotmail.com
2006-01-03 03:38:37 UTC
Permalink
Hi,

How would you get vbdos to return the integer of it's background color?

I can set it ok like this :

SCREEN.ControlPanel(DESKTOP_BACKCOLOR) = 1

but I can't get it to return it on a msgbox/textbox/strings etc

thanks,
John Kane
2006-01-03 10:10:18 UTC
Permalink
Post by s***@hotmail.com
Hi,
How would you get vbdos to return the integer of it's background color?
SCREEN.ControlPanel(DESKTOP_BACKCOLOR) = 1
but I can't get it to return it on a msgbox/textbox/strings etc
thanks,
Try...

Text1.Text = FORMAT$(SCREEN.ControlPanel(DESKTOP_BACKCOLOR))
--
Regards, John
***@johnkane.clara.co.uk
s***@hotmail.com
2006-01-03 19:19:22 UTC
Permalink
sorted, tho not sure where you knew to use FORMAT$,

i take it, searching for help in the index of vbdos help for the
background color related stuff, will not twe not tell you about FORMAT$
, just experance i take it?

Thanks m8,
John Kane
2006-01-04 10:22:42 UTC
Permalink
Post by s***@hotmail.com
sorted, tho not sure where you knew to use FORMAT$,
i take it, searching for help in the index of vbdos help for the
background color related stuff, will not twe not tell you about FORMAT$
, just experance i take it?
Thanks m8,
Its not specific to Screen related stuff - after all they are simply
Integer numbers we are dealing with.

You could use STR$(number) but this would give you a leading Space
character.

Using LTRIM$(STR$(number)) would eliminate the leading Space.

But I find it easier to use FORMAT$(number).
--
Regards, John
***@johnkane.clara.co.uk
Loading...