Text editor for INI files

Discussion in 'Questions (Windows Mobile)' started by Softselect, Nov 14, 2007.

  1. Softselect

    Softselect Member Licensed User

    Hi Erel,
    how can i get your TextEditor.sbp to open ini files only, EG File, load, *.ini
    I need to put in some sort of a filter that will only allow the user to open INI files.
    OpenDialog1.Filter="*.ini* doesnt seem to work or I am putting it in the wrong place


    edit inserting OpenDialog1.Filter=(*.ini) just before "If OpenDialog1.Show <> cCancel Then" gives an "error opening file"
    Last edited: Nov 14, 2007
  2. specci48

    specci48 Well-Known Member Licensed User

    Hi Softselect,

    add this line before showing the open dialog:
    OpenDialog1.Filter = "Init Files (*.ini)|*.ini"
  3. Softselect

    Softselect Member Licensed User

    Thank you specci48:sign0188:
    i knew it had to be simple, i guess i mis-interpeted the help file
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice