main logo
Subject: Re: Using declared constants.
Author: Mike Devlin
Posted: 2001/11/05 11:04:56
 
View Entire Thread
New Search


<i><font color="#663300">Codebook makes liberal use of declared constants, but when I try to use those same constants I get 'Variable not found' errors. For instance, if I add code to the AfterSave() method of a form and test for 'FILE_OK' I get "Error #: 12" "Message: Variable 'FILE_OK' is not found". What am I doing wrong? Do I need to add an 'INCLUDE#' statement to each form?</font></i>Hey Virgil,
The way to do this is to open the class in the class designer. Then the class menu item appears on the menu bar. Clicking that drops down a menu which has 'Include file...'. Click on that and the include file dialog appears. Then browse to the appincl.h file in the include folder of the local project.
There is also a setincl.prg file which can be used to set all of the a-layer classes of the project to a particular .h file. The documentation for that is in the CodeBook news articles. This should get rid of those errors.

Devman
mdevlin AT ajdebruin DO.T com

 
©2001 Mike Devlin
<-- Prior Message New Search Next Message -->