kakmouth
Programmer
- Oct 26, 2001
- 20
hi.
just wondering if it is possible to do a macro substitution in javascript...
for example if i define a string variable as:
<< var lsText = "document.Form1.txt_PONum" >>
where document.Form1.txt_PONum is a textbox on Form1, would i then be able to substitute that text/variable in a line of code calling for the click() method of that textbox:
<< document.Form1.txt_PONum.click() >>
but substitute like:
<< {lsText}.click() >>
????
any help would be greatly appreciated...
thanks. mike
just wondering if it is possible to do a macro substitution in javascript...
for example if i define a string variable as:
<< var lsText = "document.Form1.txt_PONum" >>
where document.Form1.txt_PONum is a textbox on Form1, would i then be able to substitute that text/variable in a line of code calling for the click() method of that textbox:
<< document.Form1.txt_PONum.click() >>
but substitute like:
<< {lsText}.click() >>
????
any help would be greatly appreciated...
thanks. mike