Results 1 to 4 of 4

Thread: [RESOLVED] SaveFileDialog Question

Threaded View

  1. #3
    PowerPoster
    Join Date
    Aug 2005
    Location
    College Station, TX
    Posts
    4,521

    Re: SaveFileDialog Question

    Or just get the right 3 characters returned from the filepath of the dialog...

    VB Code:
    1. Dim MyExtension as String
    2. MyExtension = strings.right(ReturnDialogString, 3) 'returns last 3 letters, replace returndialogstring with filepath returned from dialog
    3. Select Case MyExtension
    4.             Case Is = "m3u"
    5.                 MsgBox("m3u")
    6.             Case Is = "wpl"
    7.                 MsgBox("wpl")
    8.             Case Else
    9.                 MsgBox("Not A Supported FileType!")
    10.                 Exit Sub
    11. End Select
    EDIT*** - uppercase extensions won't work with this code, you have to do myextension = myextension.tolower in order to always make it lowercase in order for it to work, or change your case statements to also evaluate it for the uppercase M3U or WPL
    Last edited by gigemboy; Nov 13th, 2005 at 07:45 PM.

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