Click to See Complete Forum and Search --> : I think it's an OLE object, but...


restfern
March 10th, 2001, 02:47 PM
...I maybe mistaken. What I need is to know how I can produce a Windows - explorer type model for my app. Basically, what I'm doing is allowing the user to save searches he/she makes. A folder is then created, the nam of which is the current date. Inside that folder is stored the saved search file. What the user does to reload a file is select the correct folder (by date), and then select the relevant saved search.
If anybody knows how to produce the initial folder object, then I'll be very grateful if they could let me know.

Thanks in advance.

Knows a little about a lot

vchapran
March 10th, 2001, 05:21 PM
You can create a folder by using API. This is an example:

private Declare Function CreateDirectory Lib "kernel32" Alias "CreateDirectoryA" (byval lpPathName as string, lpSecurityAttributes as SECURITY_ATTRIBUTES) as Long
private Type SECURITY_ATTRIBUTES
nLength as Long
lpSecurityDescriptor as Long
bInheritHandle as Long
End Type
private SecAttr as SECURITY_ATTRIBUTES
private Sub Command1_Click()
Call CreateDirectory("c:\TestDirectory", SecAttr)
End Sub




Place Command1 on the form and paste this code.
HTH
Vlad