HI
Very basic question (I hope).
I need to create an open button which opens a .DMP file (which is just a text file from a database dump)
and place it into a text field.
I was having two issues, now to limit the section to .DMP files, then how to get that into the text field.
thanks!
open DMP File
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: open DMP File
I should add, the .DMP file is just a text file, but it would be nice to limit the user to that extension when they chose a file. thanks!
Re: open DMP File
Hi nobaday,
do like this:
Best
Klaus
do like this:
Code: Select all
...
answer file "Select a DMP file:" with type "DMP file|dmp|"
## User might have clicked CANCEL, but the selcted file pathname is in the variable IT
if it <> empty then
## Read file as TEXT and put its content into a field:
put url("file:" & IT) into fld "your field here..."
end if
...
Klaus
Re: open DMP File
Worked beautifully, thanks Klaus!