Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

this.getfield(variable) aka control arrays

Status
Not open for further replies.

ESquared

Programmer
Dec 23, 2003
6,129
US
I am stepping through a recordset and wish to assign each next row in the recordset to the next textbox on my pdf. I thought the following constructions would work, but they don't.

Code:
this.getfield("Line" + rownum) = rowInv.Description.value

this.getfield(fieldname) = rowInv.Description.value

where rownum has a number such as 2 and fieldname might be "Line2".

How can I simulate a control array or otherwise easily accomplish this? Do I have to make a loop that steps through every control in the pdf until it finds the one with the correct name?

I could also kluge it and just put in enough nextrow calls with the field names hardcoded, but that turns my stomach.

Thank you for your help!




-------------------------------------
A sacrifice is harder when no one knows you've made it.
 
Oh gee, never MIND!!! :)

javascript is case-sensitive. How quaint.

getField

-------------------------------------
A sacrifice is harder when no one knows you've made it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top