Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I create an empty class?
Message
From
11/12/2003 11:24:39
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
11/12/2003 11:22:19
Mike Sue-Ping
Cambridge, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00858157
Message ID:
00858171
Views:
19
>>>I have a non-visual application object that is based on the Custom VFP baseclass. I want to try to change it to an Empty baseclass since it is supposed to be better for this type of thing.
>>>
>>>I read in the help file that the latter cannot be done visually, but I could not find an example of how to create an empty class in code.
>>>
>>>Anyone care to share some sample code on how I go about doing this?
>>>
>>>TIA
>>>
>>>Regards,
>>>
>>>Mike
>>
>>
>>loEmpty = NewObject('myEmpty','myNonVis.prg')
>>
>>*myNonVis.prg
>>define class myEmpty as Empty
>>enddefine
>>
>>Was this what you asked ?
>>Cetin
>
>Hi Cetin,
>
>Thanks for the response.
>
>I guess I'll know the answer after I try it <g>.
>
>Mike

You replied before I could update :) To my surprise it didn't work. Wish it was my syntax error.
Update: Makes sense when I read the help :
"You cannot subclass or add custom methods and events to the Empty class"
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform