Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OLEDragDrop Error when calling a Method List_Move()
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00533269
Message ID:
00534160
Vues:
27
>It seems to think that List_Move(from_list, to_list) is a property. List_Move() is a method that exists in a class that I use repeatedly in xfer buttons and dblclick events to xfer data from one list to another. I recently wanted to add the oleDrag&Drop to enhance my program for my customers. It drags and drops perfectly fine with the code from list_move() pasted directly into the OLEDragDrop event, but does not seem to like it when I instead call the list_move() method.
>
>The Error it get is: "Program Error: Property List_Move is not found"
>
>Additionally, i can not use WINDOW DEBUG anywhere I am using OLE so its hard for me to debug this one. Whenever I do it get the following errors: "Program Error: Cancel or Suspend is not allowed."
>
>Thus my question is two fold: Why does it have a problem with my calling a method from an object (oApp.List_Move where oApp=CreateObject("List_Move's class") and Set Classlib to )??
>
>AND why can't a run debug inside OLE?
>
>thanks
>matt
>
>ps I posted this once and it didn't seem to show up, so i hope things don't get redundant. IF so my apologizes in advance.

If it is a method in your class, you may need to include the parentheses when using it in this manner. As in:
(oApp.List_Move() where oApp=CreateObject("List_Move's class")
-Lou.
"All my life I said I wanted to be someone ...
I can see now that I should have been more specific." -Jane Wagner
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform