|
-
Apr 26th, 2002, 12:41 PM
#1
Thread Starter
PowerPoster
Well, assuming I understand what you're trying to do....
You could try putting a block in that stops the loop if frmChooseAction is active.
For Example, in the 'On Load'even of frmChooseAction, set a global variable to true (such as blnfrmChooseActionLoaded). When the form closes set it to false.
In your main loop you would then have a mini loop which goes as follows...
VB Code:
while blnfrmChooseActionLoaded = true then
doevents
wend
Give that a whirl. You could also try scrapping the global variable and simply checking the .visible property of the form - but this has never been very successful for me...
Gentile or Jew,
O you who turn the wheel and look to windward,
Consider Phlebas, who was once handsome and tall as you...
-
Apr 26th, 2002, 12:45 PM
#2
New Member
Thanks alot for the help, I'll try it. If it doesn't work (which i doubt, i didnt know that was a property) then...ill try the other way.....and hope it works.
Thanks again
-
Apr 27th, 2002, 04:59 AM
#3
Hyperactive Member
Or you could try this:
VB Code:
If Inniative = 1 Then
FrmBattle.ImgTop = LoadPicture(App.Path + "/forest.bmp")
FrmBattle.List1.AddItem ("You won inniative, proceed with battle..")
goto 10:
and then at the end of the repeat, do this:
VB Code:
End If
10:
FrmChooseAction.Show
End Sub
-Show me on the doll where the music touched you.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|