An hash array dictonary step by step
#8
madscijr

It doesn't matter which version of QB64 or PE for this code, but it has to be fixed. I haven't run the program listed here with the fix I'm proposing below. The array with the error was originally initialized "As Long", but that was forgotten in the error line. (Otherwise it's trying to redefine "As Single", because there's no _DEFINE statement or alike which changes the "default" type, which is not allowed.) So if you can try this code again with the version of QB64 that is working for you.

Code: (Select All)
ReDim m_arrLookup(ubm_arrLookup * SYMTAB_GROWTH_FACTOR) As Long

Line #45 might have to be changed to "ReDim" instead of "Dim" also.

Then carry on soldier. Big Grin

EDIT: I have to read more carefully the earlier posts in a topic! But whoever got the error needs to fix it like I proposed.
Reply


Messages In This Thread
RE: An hash array dictonary step by step - by mnrvovrfc - 03-21-2023, 01:56 AM



Users browsing this thread: 16 Guest(s)