Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I set an Object to another one's proprerty?
Message
 
 
To
24/08/1999 16:10:23
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00257284
Message ID:
00257289
Views:
17
>Hello,
>
>Here is a quick look at what I am trying to do (I am NOT very good in FoxPro):
>
>I have a BackupJob object (xBackup) and a FileSelection object (xFiles)
>
>Basically, what I need to do is pass xFiles to xBackup property called selection.
>
>In VB it would look like this:
>
>xBackup.Selection = xFiles
>
>Foxpro does not seem to like this as it does not recognize xFiles as being an object.
>
>Both xBackup and xFiles are in seperate OleContainers.

You need to include the parent object of xfiles:

xBackup.Selection = ThisForm.Container_Name.xFiles.Value

I have assumed xFiles is a textbox. If it is a combobox, change Value to DisplayValue if needed.
Mark McCasland
Midlothian, TX USA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform