>Dear Nick
>so i can do this only with PUBLIC variable?
In addition to Nicholas' reply, you can work as follows:
Have a main #include file, that references other #include files. In the following examples, I will name it after your company, but you might also use your name, name it "main.h", etc.
#include messages.h
#include foxpro.h
#include xl97const.h
#include ...
In every PRG where you need one or more constants:#include homa.h
This allows you to separate your definitions into several pieces, and easily include third-party constant files, like a file with Excel constants (from the UT download page; I didn't check the filename).
For a form, make the constant file available to all methods in the form with the command "Form | Include file". Similar for a class.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)