Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can't access method in a class
Message
De
25/03/2000 13:00:21
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Can't access method in a class
Divers
Thread ID:
00350411
Message ID:
00350411
Vues:
47
I am trying to build a simple COM EXE and I have a strange behavior.

My project contains a simple PRG.
DEFINE CLASS Search AS Custom OLEPUBLIC

FUNCTION Search
PARAMETER tcSearch
MESSAGEBOX('we are in')
ENDFUNC

ENDDEFINE
After I have compiled the EXE, I can test from the command prompt.

loSearch=CREATE('FT.Search')

The loSearch object is created.

Now, if I try to call the Search method like this:

loSearch.Search('test')

I hear a beep and the object goes in busy mode.

Why?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform