General information
Title:
How do I set an object to the property of another object?
Hello,
I have asked this question before but I was not able to get it to work .
Here is the situation again...
I have a Active X control wich contains 5 objects. For some reason I have to add the 5 objects in seperate Ole Controls but that is besides the point (at least I think). Ok, basically I set the properties of the FileSelection object (xFiles) in the following way:
THISFORM.xFiles.FilesToProcess = "c:\Winnt\*"
THISFORM.xFiles.FilesToExclude = "c:\Winnt\System32\*"
Then, I want to pass the entire xFiles object to the Backupjob object (xBackup) in the following way:
THISFORM.xBackup.Selection = THISFORM.xFiles
(and other variations)
I get many error but the one that is bothering me the most is "Unknown COM status".
In VB the code would look like this:
xFiles.FilesToProcess = "c:\Winnt\*"
xFiles.FilesToExclude = "c:\Winnt\System32\*"
xBackup.Selection = xFiles
(I also have to call the method but for the moment I just want to get this part to work)
I can send you ca copy of the component if it helps..
Thanks again for your time!
Jenny
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only