ppx
New Member
Posts: 2
|
Post by ppx on Jan 6, 2008 16:57:19 GMT -5
Hi, In the StatusBar code there is a SB.SETTEXT and SB.SETPARTS What is this SB... is it an array, pointer or what. And where do those numbers come from and what do they mean?
E.K
|
|
ppx
New Member
Posts: 2
|
Post by ppx on Jan 6, 2008 17:26:50 GMT -5
Problem solved. I'm used to coding these message constants myself.
|
|
|
Post by Alyce Watson on Jan 7, 2008 6:11:04 GMT -5
Problem solved. I'm used to coding these message constants myself. Liberty BASIC has many Windows constants in an internal list, so it recognizes them if they have an underscore prepended, thus: _SW_SHOW Liberty BASIC doesn't recognize all constants, though. To determine if a constant is recognized so that its value will be substituted at compile, try printing it: print _SW_SHOW print _SB_SETPARTS The second will generate an error. If that's the case, you need to substitute the values yourself, as you are used to doing, or create your own "constants." You cannot use underscore characters in your own "constants." (In quotes, because LB doesn't have true constants, so you're really creating your own variables.) People often replace the underscore with a dot to mimic Windows constants. Glad you sorted it out!
|
|