Grr...i hate this things...
I think that i am find what is wrong...
char tx[32768] cose this troubles..
so new subroutine look like this:
SUB doSave
INT hsize=0
dir=""
'char tx[32768]
string tx
string ext=".o2bas"
filter="All Files (*.*)" + Chr(0) + "*.*" + Chr(0) + "Oxygen Files (*.o2bas)" + Chr(0) + "*.o2bas" + Chr(0)
title="Save File... "
hwnd=0
fName = FileDialog(dir,filter,title,0,1,"")
fName=fName+ext
print fname
hsize = SendMessage hsci, SCI_GETTEXTLENGTH, 0, 0
If hsize=0 then return
SendMessage hsci,SCI_GETTEXT,hsize,strptr tx
PutFile fName,tx
END SUB
I'm still not sure why extension string is not recognized properly
in Save subroutine ,maybe is problem in standard 3 chars instead of .o2bas (5) .