The plain search technique comes to mind (air code):
function getControlIndex(cName as string)as long
dim i as long
for i=0 to controls.count
if controls(i).name=cname then
getcontrolindex=i
exit for
endif
next
end function
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.