>>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
>
>this works in VB and not in VFP because VB supports the idea of a default property for an object: a property whose value is used when a property is not specified. VFP doesn't do this.
>
>By trying the syntax above, you are attempting to set a (text?) property to an object value. The first error you get is probably a data type mismatch. Without being at all familiar with the FileSelection object, I don't
woops, hit the enter key on accident...
Without being at all familiar with the FileSelection object, my best guess at it's default property is Selection... (?) IAC, the syntax to set that property would be:
THISFORM.xBackup.Selection = THISFORM.xFiles.selection
HTH
Erik Moore
Clientelligence