vb6 - In VB for loops is less that or greater than allowed? -


eg code

        llngindex = 0 llngindex < 256 step 1             lbytkeyary(llngindex) = val(pstrkey((llngindex mod llngkeylength)))         next 

is llngindex < 256 allowed?

when debug code , go step step seems skip loops

the correct code loop:

for llngindex = 0 255     lbytkeyary(llngindex) = val(pstrkey((llngindex mod llngkeylength))) next 

note: no need step 1 because step 1 default value


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -