Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Apphook Message
Message
From
19/11/2019 17:42:42
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
01671931
Message ID:
01671940
Views:
60
>>I've started a new project from scratch. WHenever the project is opened I get a message "apphook class loaded...". I have no idea what that means.
>>Despite that, I've done some initial work on it, and its been coming along. I tried a compile on it, and it completed. However, now when I run the program (either the .EXE or interactively) I get a SYNTAX error right away pointing to my "DO FORM XXX" in my main program. I don't understand what's going on. My main.prg contains almost nothing except some variab;e declarations, and it had been working fine.
>>
>>I'd appreciate any help on this.
>>Rich Murillo
>
>You most likely used the application wizard to create you project, you should not. It adds a lot of things like apphook, which is not recommended to use.
>
>ok, I guess that explains the APPHOOK message. Would that also explain why I'm now getting a syntax error on my "DO FORM xxx" statement?

Yes, it would, if your are going to use the application wizard, you have to do things the way the wizard expect you to do things. It also create an object (APP_GLOBAL) that contains the methods to use when calling forms. You cannot do it the 'regular way'. I would suggest if you just started, start your project over with no wizard. Because people found that unless you want to study everything that the wizard created, it would be much simpler.

Mike... I thank you SO very much. You've been most helpful, and I cannot thank you enough. This site has been so very helpful through the years.
Thanks again, Mike.
Rich
Previous
Reply
Map
View

Click here to load this message in the networking platform