Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is << ADD OBJECT >> a command?
Message
From
25/06/1997 18:39:05
 
 
To
25/06/1997 16:52:40
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00037744
Message ID:
00037751
Views:
31
>I was doing more investigating of Visual MaxFrame (freebie) and came across code which seemd to AddObject all of the VMF classes.
>Not understanding the wisdom/necessity of this, I decided that I should look at an existing SCX to see if it did that.
>I used the Class Browser to look at the code.
>
>In the code I found a series of ADD OBJECT commands. (NOTE, *NOT* AddObject).
>
>This led me to the Help, to learn more about the Add OBJECT command. Sure enough, it was listed. But when I selected it from the index, I got DEFINE CLASS instead!
>I then went to Help Find, typed in ADD and got a list including Define Class but *NO* ADD OBJECT.
>
>What's going on here??
>
>thanks in advance,
>Jim N


I typed HELP ADD OBJECT in the command window. The following is from the help that came up:

Syntax

DEFINE CLASS ClassName1 AS ParentClass [OLEPUBLIC]
[[PROTECTED | HIDDEN PropertyName1, PropertyName2 ...]
[Object.]PropertyName = eExpression ...]
[ADD OBJECT [PROTECTED] ObjectName AS ClassName2 [NOINIT]
[WITH cPropertylist]]...
[[PROTECTED | HIDDEN] FUNCTION | PROCEDURE Name
[NODEFAULT]
cStatements
[ENDFUNC | ENDPROC]]...
ENDDEFINE

Craig
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform