28172Re: [libertybasic] Hex and API Calls
- Oct 1, 2005Hi,
Thanks Alyce. I'm not using underscores in variable names I just put that in my message because the API uses a windows constant and I was in that frame of mind.
Alyce Watson <alycewatson@...> wrote:
At 02:33 PM 9/30/2005, you wrote:
>Hi!MyConstant = hexdec("8000")
>A quick question. If an API requires a constant of hex 8000, &H8000 in
>MSDN terms, will the following LB line take care of this?
Don't try to put underscores in your variable names. LB expects them to be
its pre-defined Windows constants and will halt with an error. You could
simply use the decimal equivalent, too.
MyConstant = 32768
Note, too, that LB doesn't have constants. You'll have to use literal
values, or be sure that you don't change the values if you use variables.
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.11.8/114 - Release Date: 9/28/2005
Yahoo! Groups Links
Yahoo! for Good
Click here to donate to the Hurricane Katrina relief effort.
[Non-text portions of this message have been removed]
- << Previous post in topic