Re: Unsigned Integer
From: Duane Bozarth (dp_bozarth_at_swko.dot.net)
Date: 02/27/04
- Previous message: Zoury: "Re: Writing to a Text file"
- In reply to: Farsad Nasseri: "Re: Unsigned Integer"
- Next in thread: Randy Birch: "Re: Unsigned Integer"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 26 Feb 2004 19:39:17 -0600
Farsad Nasseri wrote:
>
> What do you declare ix% an iy% as? integers? longs?
>
> and isn't ">" the equivilant of >> in C?
>
> Thanks again for the help
Oh, you really <don't> know VB, do you? :)
The trailing "%" on the variable name declares it as Integer (from BASIC
rules before the As Type syntax was introduced by MS). The trailing "&"
is the identifier for a Long. (These are all in the help files for data
types). I just used the shorthand nomenclature as you can type Dim in
the Immediate window and I wanted a specific length for the
demonstration.
">" and "<" are relational operators in VB as in C...
BTW, this question (or related ones about bit operations) comes up
frequently. It seems to me that within the last year we went through
and developed a set of routines for another poster in
comp.lang.visual.basic.misc, the other VB ng I monitor. You might try
Googling there. I'd also wager there's a reasonable chance of finding a
set of routines on some of the VB code sites.
Unfortunately, I can't provide a packaged set of routines myself as I
did take the easy way out of using Fortran intrinsics (Fortran's my
primary language, I use VB mostly for GUIs in front of the computation
engine) so I simply link these in when/if I need them. But, as I say,
it isn't that difficult to roll you own little functions.
- Previous message: Zoury: "Re: Writing to a Text file"
- In reply to: Farsad Nasseri: "Re: Unsigned Integer"
- Next in thread: Randy Birch: "Re: Unsigned Integer"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|