Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
DIM structure help
#11
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:
*****
Reply
#12
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 [Image: biggrin.gif]
In a world without walls and doors, who needs Windows and Gates?
Reply
#13
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
Reply
#14
thanks
Reply
#15
http://www.hyperdictionary.com/dictionary/hash+coding
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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)