PDA

Click to See Complete Forum and Search --> : Text in a command button


madddog
Jan 18th, 2000, 03:01 AM
Good afternoon,

I have a small program that I want to change. The program reads an INI file, then opens a text file when the command button is selected. How can I read the index to put the name of the file on the button.

ex.
[file location]
info=c:\info.doc
readme=c:\readme.doc

I want the info or readme to show up on my command button or whatever I use for the location header.

Mike

Jan 18th, 2000, 03:06 AM
I think you want to change the .caption of the command button. something like:

command1.caption = mid(info,4,len(info)-3)



------------------
Boothman
There is a war out there and it is about who controls the information, it's all about the information.