Results 1 to 4 of 4

Thread: Api open dialog...

  1. #1

    Thread Starter
    Registered User Olly's Avatar
    Join Date
    Apr 2001
    Location
    Switzerland
    Posts
    252

    Api open dialog...

    1st. Is it possible to change the caption of the "open" button to something like "Add"?
    2nd How can i associate several file endings to one filter e.g.:

    Code:
    OFName.lpstrFilter = "Executable files (*.exe)" + Chr$(0) + "*.exe" + Chr$(0) + "Batch/Script files (*.bat;*.cmd;*.jsp;*.vbs)" + Chr$(0) + "*.bat" + Chr$(0) + Chr$(0)
    I want to add the .cmd, .jsp and .vbs to the filter as well, not only the .bat. Thank you for helping me!

  2. #2
    Frenzied Member Microbasic's Avatar
    Join Date
    Mar 2001
    Posts
    1,402
    #1:



    #2:

    VB Code:
    1. OFName.lpstrFilter = "Executable files (*.exe)" + Chr$(0) + "*.exe" + Chr$(0) + "Batch/Script files (*.bat;*.cmd;*.jsp;*.vbs)" + Chr$(0) + "*.bat;*.cmd;*.jsp;*.vbs" + Chr$(0) + Chr$(0)


    MicroBasic
    Dragon Shadow Trainer

    There is no good or evil in the world...only programmers and fools .

  3. #3

    Thread Starter
    Registered User Olly's Avatar
    Join Date
    Apr 2001
    Location
    Switzerland
    Posts
    252

    Smile

    Ah, ok, with semicolon. Should have thought about that but only tried "or" and stuff... Thank you!

  4. #4

    Thread Starter
    Registered User Olly's Avatar
    Join Date
    Apr 2001
    Location
    Switzerland
    Posts
    252
    Wait, I want to add all registered extensions. I did so, but
    if you add let's say about 300 entries to the filter it won't work anymore

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