Re: Help with coding
- Posted by irvm at ellijay.com Jul 26, 2001
- 367 views
On Thursday 26 July 2001 11:16, Travis Weddle wrote: > > > Irv--ok, instead of using the fn = open("moves.txt", "r") to open a file > with moves in it, how would i use the Open command in the file menu to > open a file, so i won't have to change coding for each file that i want > to view? > In the editor, click on your File/Open menu selection, and enter in the code box that pops up: object fname fname = getOpenFileName(Window1, "C:\\Bus\\*.edb", -- default path & extension {"Euphoria database","*.edb"}) -- file select options if length(fname) > 0 then -- a file was selected -- put your file open code here else -- no file was selected (cancelled) -- do whatever is appropriate end if Regards, Irv