Results 1 to 2 of 2

Thread: Opening & Copying all

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 1999
    Posts
    482

    Post

    Ok, i am trying to make an Open dialog box to open a file.. and put it on to the form i have:

    CommonDialog1.InitDir = App.Path & "\Blarb\"
    CommonDialog1.filename = ""
    CommonDialog1.Filter = "Blar (*.blah)|*.blah"
    CommonDialog1.ShowOpen

    And i can't figure out how to make it open the file that they have selected..

    the File info has been saved as the following:

    Text1.tag,Text1.caption,text1.value, text1.tooltiptext

    then the text2.tag, Ect

    And also..
    how do u make a Button Copy ALL the text from text1.text???


    Thanks

  2. #2

    Post

    Not sure if this is what you want it:

    CMDialog does not open a file but select it. You can open it via:

    open CMDialog1.Filename for input as #1
    ...
    ...


    And the other thing:
    sub Button1_Click()
    Clipboard.clear
    clipboard.settext(text1.text)
    end sub

    Björn




    ------------------
    EMAIL: [email protected]

    PAGE: <A HREF="http://members.xoom.com/sharetools
    " TARGET=_blank>http://members.xoom.com/sharetools
    </A>

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