Code:
Problem description:
ID:141271
Apr 30 2009, 7:49 am (Edited on Apr 30 2009, 8:36 am)
|
|
In response to Kaioken
|
|
I only added the alert to see if the proc even ran and after I clikc OK, it just looks like this and nothing else happens. The question_number var starts at one and this still happens on the first time the proc runs.
|
In response to Howey
|
|
(See my edits above.)
Well, add some debug lines to see where the code gets stuck, then check what's the problem there. Though there's not a lot to check, you should really have been able to debug this on your own, step by step. You haven't given enough info for other people to completely debug it anyway, we don't know what you actually have inside that lists of lists (which it hopefully is, as you're using T like a list, any other value is a pointless single-arg pick() call) and if there's actually 1 there, etc... |
In response to Kaioken
|
|
It was the pick() proc. I got it to work now. Cheers.
|
1) The code wouldn't continue until you close the alert, as the alert() proc doesn't return until that is done.
2) Perhaps the condition, src.question_number < 5, is not satisfied, and so nothing seems to happen?
3) Otherwise, the list question_bla may be empty (or uninitialized).
4) pick() may , uh, not return 1, and so the check isn't satisfied, etc, etc...
5) Your winset() args may be wrong.
Etc.
Also, note that's not really a very good way to do it, or even design it, but whether you want to leave it as it is is your call.