Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
variable scope : want to be sure
#4
OK, just to be sure I did it the right way.

1) I made a macro triggered by the program window the toolbar is linked to.

int hwnd=val(_command)
int+ MyWindow=hwnd

But I wonder if directly using this is valid:

int+ MyWindow=val(_command)

2) The toolbar uses 5 macros or functions. In each one:

int+ MyWindow
Acc a.Find(MyWindow "TEXT" "" "class=TEdit[]xy=659 815" 0x1004)

Must I declare int+ MyWindow in each macro/function before using it or directly use MyWindow variable?

Thanks


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)