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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TextWidth error?? 2

Status
Not open for further replies.

slim2

Programmer
Oct 18, 2001
94
I have a statement
i = TextWidth(list(c)) + 400

wich I used in a form. I moved the code to a class module and get an error on TextWidth. Sub or Function not defined

If anyone can help I would appreciate it.

Thanks in advance.
 
TextWidth is a method of the form object. If you want to invoke that method from outside the form, then you must excplicity identify the form (or any form) since the method is the same for all form objects.

i = Form1.TextWidth(list(c)) + 400

Good Luck
--------------
As a circle of light increases so does the circumference of darkness around it. - Albert Einstein
 
CajunCenturian, that did, thanks very much.

 
You're quite welcome.

Good Luck
--------------
As a circle of light increases so does the circumference of darkness around it. - Albert Einstein
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top