Integer Basic integers

Integer Basic integers

Post by datajer » Wed, 28 Apr 2010 11:26:30


Is there a hack, tip, or trick to get Integer Basic to use 0 - 65535
for the integer range instead of -32768 - 32767. I would expect 255 *
256 to produce a negative number instead of an error.

Thanks.
 
 
 

1. Can't create Integer field, a Long Integer is created instead?

2. Compiler chokes on correct syntax TreeView1_KeyDown(KeyCode As Integer, Shift As Integer).

My Excel 2002 VB Editor has Microsoft Visual Basic 6.3.

I've been using TreeView months and it works great. Now I want to use
KeyDown. VB 6.3 Help says syntax is:

"Event KeyDown(KeyCode As Integer, Shift As Integer)"

So I have:

[In Form Module UserForm1:]
Private Sub TreeView1_KeyDown(KeyCode As Integer, Shift As Integer)

But the compiler chokes on that line with:

"Procedure declaration does not match description of event or
procedure having the same name" [terminated without punctuation]

Besides the complaint that it'd take only half those words for the
stupid error msg. to tell you what the syntax *is*, I've tried several
variations and they all *** too, e.g.:

Private Sub TreeView1_KeyDown(

ByVal KeyCode As Integer, ByVal Shift As Integer
KeyCode As ReturnInteger, Shift As Integer
ByVal KeyCode As ReturnInteger, ByVal Shift As Integer
KeyCode As MSForms.ReturnInteger, Shift As Integer
ByVal KeyCode As MSForms.ReturnInteger, ByVal Shift As Integer
KeyAscii As Integer, Shift As Integer
ByVal KeyAscii As Integer, ByVal Shift As Integer
ByVal
If_You_Want_Me_To_Say_George_Bush_Is_A_Great_President_Then_OK_He_Is
As String

)

Yet right above it in the same module I've been using:

Private Sub TreeView1_KeyPress(KeyAscii As Integer)

and it compiles fine.

Full disclosure dept.: I'm implementing UserForm thru Stephen Bullen's
great CFormChanger, but all he does is set some simple sizing & button
properties & methods at the form level.

What am I doing wrong?

Thanks much.

***

3. Convert Char-->integer or Integer-->char

4. matlab function for wavelet integer to integer transform

5. pointer plus an integer && castingt an integer to a pointer.

6. conversion of signed integer to unsigned integer

7. Suitable Integer Square Root Algorithm for 32-64-Bit Integers on Inexpensive Microcontroller?

8. Integer 128 != Integer 128 ??

9. convert scientific integer to normal integer

10. Create a 32-bit integer from 2 16-bit integer

11. when to use smaller integers like byte or short rather than INTEGER

12. A list of Consecutive Integers, can I search for missing integers

13. division of variable integer into best fit integer parts

14. 96-bit integer modulo, Athlon64 gcc 64-bit integers, libc codefor 64-bit division, etc.

15. Question about unsigned integer types, integer promotion, and relational operators [C99]