Text editor for INI files

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:

specci48

Well-Known Member
Licensed User
Hi Softselect,

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

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
 
Top