Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with #DEFINE
Message
From
12/12/1997 21:29:34
 
 
To
12/12/1997 08:53:06
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00065465
Message ID:
00065703
Views:
32
Oops, my mistake.
i didn't notice that earlier :)
(probably too much caffeine kickin-in)

Sorry for the misunderstanding.
And thanks for the correction!

Mazlan Bin Mohammad


>You don't have any #DEFINE in your code. :) Please note that in VFP you have #DEFINE (similar to the #DEFINE in C) and DEFINE CLASS which is total different.
>
>Vlad
>
>>i assumed my problem was syntactical in nature so, it must be some error in the way i coded the #DEFINE statement :)
>>
>>Mazlan Bin Mohammad
>>
>>>Where's the "#DEFINE" problem? :)
>>>
>>>Vlad
>>>
>>>>!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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform