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

Can I use a .bas file to populate labels? 1

Status
Not open for further replies.

wesw

MIS
Jan 16, 2002
31
US
What a pain it is if you have a page with many labels. Adding the text etc. gets old very quick (unless I am doing something wrong)

Can I just drag all my labels e.g. LabelControl1, LabelControl2 then in a .bas file somehow assign text to each one?

What is the best way? I hope it isn't drag, scroll, size, text, drag etc.

Actuate is a pain to format compared to Crystal.

TIA
W
 
If you're using the same labels over and over in various reports, simply create the labels and then publish them to a library. You could also creat a .bas file that contains interpretted values for a given label: lblColumn1 for example would be set to a value of "Name" in a .bas file, and your label is essentially doing a look up in the file to find what value it should have. The work here, then, is in the code; and ensuring you have ALL your labels that you'll ever need accounted for in the .bas file so that the file itself doesn not need continual updating.

If using a .bas file, you would still want to have label controls in a library which have the code to do the lookup.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top