Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can't access method in a class
Message
From
25/03/2000 13:00:21
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Can't access method in a class
Miscellaneous
Thread ID:
00350411
Message ID:
00350411
Views:
46
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
Next
Reply
Map
View

Click here to load this message in the networking platform