Results 1 to 2 of 2

Thread: Text in a command button

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 1999
    Location
    Nashville, TN
    Posts
    114

    Post

    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

  2. #2
    Guest

    Post

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width