On Error Resume Next
For i = 1 to 9999
If len(Flash.GetVariable("_root.null.instance" & i & ".battle.aBuilding.9.player.aResource[0]")) > 0 Then
strVariable = "_root.null.instance" & i & ".battle.aBuilding.9.player.aResource[0]")
End If
Next i
this dont looks that good since i need the variable to set it later
haxory i think what u said wont do what i want^^ since alle the variables begin in same way
i need to know if that will work:
Code:
Private Sub Command1_Click()
For x = 1 To 50000
On Error Resume Next
Label1.Caption = Flash.GetVariable("_root.null.instance" & x & ".battle.aBuilding.9.player.aResource[0]")
Next x
End Sub
it should find the right number right?
It *does* save it for later use if it exists. Also, the loop should work, it does use i. I don't have VB installed to verify though. _________________
haxory' wrote:
can't VB do anything??
windows is programmed using VB right? correct me if im wrong.
so all things in windows you have like the start menu is a windows form too.
All times are GMT - 6 Hours Goto page Previous1, 2
Page 2 of 2
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum