Using the keyblade... to fight the bugs of Programming!
Gender:
Posts: 5
Word Memorizer v1.9 bug
« Thread started on: Feb 2nd, 2008, 11:20pm »
[testClicked] Confirm "Are you ready to test?"; Test$ If Test$ <> "yes" then wait Let i = 1 For i = 1 to wdcount wd$(i) = "" Next i print #wordMem.display, "reload" For i = 1 to wdcount Let wordtest$ = worddef$(1,i) Let H = i statictext #wordTest, wordtest$, 10, H, 90, 25 next i WindowWidth = 500 WindowHeight = ((i * 40) + 20) UpperLeftX = 200 UpperLeftY = 110 open "Test your knowledge!" for window as #wordTest
close #wordTest for j = 1 to num word$ = worddef$(1, j) def$ = worddef$(2, j) wd$(j) = "The word " + word$ + " means: " + def$ + "." next j print #wordMem.display, "reload"
wait
[/code]
The test function is supposed to show each word and have a textbox to enter the definition(not implemented yet). My problem is: I wrote a loop to show each word in the window. However, it only shows one word (in the window). Why is this? Thanks -techienetwork
P.S. To use: Before adding words, you have to enter the number of words. If you want to print a list or save a file, you have to give a name for the set of words.
Update: I've deleted all that unnecessary code! If you want a copy of the program, PM me.
« Last Edit: Feb 4th, 2008, 12:44am by techienetwork »
Logged
-GAMING FREAKS UNITE- -COMPUTERS RULE ALL CONSOLES-