Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with #DEFINE
Message
De
26/12/1997 16:00:22
 
 
À
11/12/1997 23:52:54
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00065465
Message ID:
00068006
Vues:
35
put commas between the properties:

ADD OBJECT shpRect AS SHAPE WITH; && <- ERROR at this line

Height = 121, ;
Width = 289, ;
Left = 26, ;
Top = 20, ;
BorderStyle = 1, ;
SpecialEffect = 0

>!warning: message is a little lengthy!
>
>Can anyone tell me why i'm getting this compilation error when i tried to create an object based on a user-defined class?
>
>Error Message: 'Unrecognized command verb'
>
>Filename: Test.prg
>
>DEFINE CLASS clsTest AS FORM
>
> Width = 344
> Height = 209
> Caption = 'Test'
>
> ADD OBJECT shpRect AS SHAPE WITH; && <- ERROR at this line
>
> Height = 121;
> Width = 289;
> Left = 26;
> Top = 20;
> BorderStyle = 1;
> SpecialEffect = 0
>
>ENDDEFINE
>
>Filename: Test2.prg (this .prg file is executed)
>
>
>oInstance = CREATEOBJECT('clsTest')
>
>
>Any help will be appreciated!
>Many thanks :)
>
>Mazlan Bin Mohammad
Bill Morris
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform