John,
Glad I could point you in the right direction. Jan From: "[email protected]" <[email protected]> To: RBASE-L <[email protected]> Date: Thu, 30 Nov 2023 00:32:13 -0800 (PST) Subject: Re: [RBASE-L] - Changing File List Box Directory Hi Jan, I finally have this operating correctly. In case it is of interest to anyone else, I have the current drive (vdrive), and default DB directory (vdefdrive) saved when the DB starts, the default directory, including the drive name, set in the File List Box control and the ON AFTER START EEP in the DB directory. The On After Start EEP runs an EEP in a file in the DB directory, which is different from the one the files I am looking for are in so I had to include the path name to that in the EEP run command, otherwise it was looking for it in the drive the files were in:- GETPROPERTY rbfilebox1 DEFAULTDIRECTORY vdefault_can_dir SET VAR vdefdrive=(SGET(.vdefault_can_dir,2,1)) IF vdefdrive <> .vdrive THEN SET VAR vdefault_can_dir=(SRPL(.vdefault_can_dir,.vdefdrive, vdrive,0)) ENDIF PROPERTY RBFileBox1 DEFAULTDIRECTORY &vdefault_can_dir PROPERTY RBFileBox1 MASK '*.pdf' PROPERTY RBFileBox1 REFRESHLIST 'TRUE' Once I sorted out the need to use the &variable in the PROPERTY command, but not in the GETPROPERTY command things went a lot better. Thank you. Regards John Docherty On Thursday, November 30, 2023 at 7:46:55 PM UTC+13 [email protected] wrote: Hi Jan, Thank you for your advice. I am still working on this but I have made some progress thanks to your help. Regards John Docherty On Thursday, November 30, 2023 at 2:15:12 AM UTC+13 jan johansen wrote: John, I would think you need to do something like this... --Form On Before Start EEP SET VAR vCurrDrv = (CVAL('CURRDRV')) --Form On AFTER Start EEP PROPERTY yourfilelistboxpropertyid DEFAULTDIRECTORY .vCurrDrv PROPERTY yourfilelistboxpropertyid REFRESHLIST 'TRUE' Jan From: "[email protected]" <[email protected]> To: RBASE-L <[email protected]> Date: Wed, 29 Nov 2023 02:03:17 -0800 (PST) Subject: [RBASE-L] - Changing File List Box Directory I am trying to work out how to change the default directory based on the value of the CURRDRV as I swap the database between one laptop where the DB is on the D drive and another which only has a C drive. I have tried using the PROPERTY & GETPROPERTY commands and the DEFAULTDIRECTORY but it seems that making this work is beyond me... If anyone can please provide some advice regarding this that would be very much appreciated. Thank you. Regards John Docherty -- For group guidelines, visit http://www.rbase.com/support/usersgroup_guidelines.php --- You received this message because you are subscribed to the Google Groups "RBASE-L" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rbase-l/58b539c0-278f-4047-9b14-7de88f495ea1n%40googlegroups.com. -- For group guidelines, visit http://www.rbase.com/support/usersgroup_guidelines.php --- You received this message because you are subscribed to the Google Groups "RBASE-L" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rbase-l/ccac742f-40a7-4a4e-a26e-a43c6ccc5fbfn%40googlegroups.com. -- For group guidelines, visit http://www.rbase.com/support/usersgroup_guidelines.php --- You received this message because you are subscribed to the Google Groups "RBASE-L" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rbase-l/WC20231130133536.170004%40jjcalibrations.com.

