RTI-OS_DIRECTORY Choosefile (AREV32)
At 27 OCT 2022 12:12:30PM Nick Stevenson wrote:
Good Day
I am using the CHOOSEFILE method to show a list of files in a folder and allow the user to select a file and open it.
For security reasons I do not want the user to be able to see other folders, they need to be locked down to the initial directory.
Perhaps the flags value <5> can be set to something to do this?
Thanks,
Nick
At 31 OCT 2022 10:54PM Robert Heard wrote:
Hi Nick,
Not familiar with "CHOOSEFILE". Is this an AREV32 subroutine or function? More details please.
Robert.
At 01 NOV 2022 03:14AM Robert Heard wrote:
Hi Nick,
Forgot to ask, to which "flags" do you refer? Can you supply a definition of these?
Robert.
At 01 NOV 2022 05:21AM Nick Stevenson wrote:
Apologies, it is OpenInsight V9 (not Arev)
FLAGS in CFOpt<5> :-
CFOpt = ""
CFOpt<1> = 0 ;* open dialog
CFOpt<2> = "Bitmaps (*.bmp)/*.bmp/All Files (*.*)/*.*/"
CFOpt<3> = 1 ;* default type is the first one (bitmaps)
CFOpt<4> = "oilogon.bmp" ;* default filename
CFOpt<5> = 0x200 ; * OFN_ALLOWMULTISELECT from the Microsoft SDK
CFOpt<6> = drive() : "\BMPS\" ; * initial directry
File = Utility("CHOOSEFILE", @window, CFOpt)
Call msg(@window, "You selected the file " : File)
Regards
Nick
At 01 NOV 2022 05:47AM Andrew McAuley wrote:
I think the answer is "Not easily
World leaders in all things RevSoft