Posts: 1,956
Threads: 65
Joined: Jun 2003
PIPTOL,
The names you chose "Billybob", "Bubba", etc. really cracked me up. Laugh, I thought I'd die! :rotfl:
You're supposed to be British, but have you ever been to South Carolina? :wink:
*****
Posts: 354
Threads: 11
Joined: May 2002
Quote:You're supposed to be British, but have you ever been to South Carolina? :wink:
*****
No I haven't, but lets just say I've watched a lot of TV
In a world without walls and doors, who needs Windows and Gates?
Posts: 2,020
Threads: 24
Joined: Jun 2002
huh? I always thought a hash was an array whose indices were identified by a string.
There's no native support for them in qb, but you can fake it.
Code:
dim indices (howevermanyyouneed) as string
dim values (howevermanyyouneed) as integer 'or single, etc.
dim shared curindex
sub sethash(index$, value)
indices (curindex) = index$
values (curindex) = value
curindex = curindex + 1
end sub
function gethash (index$)
for x = 0 to curindex
if indices (x) = index$ then temp = values(x)
next x
gethash = temp
end function
i]"I know what you're thinking. Did he fire six shots or only five? Well, to tell you the truth, in all this excitement, I've kinda lost track myself. But being as this is a .44 Magnum ... you've got to ask yourself one question: 'Do I feel lucky?' Well, do ya punk?"[/i] - Dirty Harry
Posts: 1,057
Threads: 156
Joined: Aug 2003
Posts: 3,368
Threads: 195
Joined: Jan 2003
Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."
Visit www.neobasic.net to see rubbish in all its finest.