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

    Thanks
    Friedrich

    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:
    Code:
    OpenDialog1.Filter = "Init Files (*.ini)|*.ini"
    speeci48
     
  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
    Danke
    Friedrich
     
Loading...