Ok.. I knew I could change the dir in code.

I thought that issuing the Property command would do the same..



----- Original Message ----- 
From: "A. Razzak Memon" <[EMAIL PROTECTED]>
To: "RBG7-L Mailing List" <[email protected]>
Sent: Friday, May 13, 2005 11:15 AM
Subject: [RBG7-L] - Re: FileListBox Not Changing


>
> At 08:27 AM 5/13/2005, Mike Byerley wrote:
>
>>set debug on
>>debug trace
>>Property List1 DEFAULTDIRECTORY 'c:\temp'
>>PROPERTY list1 REFRESHLIST 'TRUE'
>>getproperty list1 defaultdirectory 'vstring' -- This contains 'c:\temp'
>>pause 2 using .vstring
>>
>>The File ListBox display still has the contents of the startup directory
>>not 'c:\temp' as expected.  Am I missing something? This is the first
>>time I have used this component.
>
>
> Mike,
>
> The DEFAULTDIRECTORY option will ALWAYS remember the form startup
> directory or the default directory defined in the FileListBox
> Default Directory property.
>
> To achieve your goal, try the following commands as Custom EEP and
> see what you get.
>
> -- Start
> SET VAR vCurrentDir = (CVAL('CURRDIR'))
> CD C:\TEMP
> PROPERTY List1 REFRESHFILES 'TRUE'
> RECALC VARIABLES
> CD &vCurrentDir
> RETURN
> -- End
>
> By the click of a button, this routine will change the current directory
> to C:\TEMP, let you view the list of file(s), allow you to open any, and
> then switch back to the default/startup directory.
>
> Very Best R:egards,
>
> Razzak.
> 

Reply via email to