Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to embed constants
Message
From
22/04/2008 11:55:21
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
22/04/2008 10:47:26
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
01312270
Message ID:
01312406
Views:
20
Just use the command #include filename.h.

>Hi Don,
>
>I see you got your answer but I have a related question: when I actually implement the class by calling it from within an applicable form, I also use some of the constants in a few of the methods of that form e.g.
>
>
>* extend the selected area to the end of the line and then back up 1 char or the paragraph end marker is deleted also
>   loSelection.MoveEnd(wdLine,1)
>   loSelection.MoveLeft(wdCharacter,1,wdExtend)
>   loSelection.Delete()
>
>
>Because the above uses some of the Word commands outside of the wrapper class, I had to include the constants file into the actual form - which was sort of overkill. It seemed I needed to do this if running the form "standalone" (outside of the project). I guess I could have copied across the constants as needed but I was trying to avoid doing that.
>
>Also, watch for my threads as most of my postings right now are either on Word automation or Excel automation (Excel for the next few weeks at least).
>
>Albert
>
>>I am building a custom class (vcx) to assist in excel automation. If the various xlConstants are available in excelconstants.h, how would you embed these constants into the class so they would be available to its various methods?
>>
>>Thanks
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)
Previous
Reply
Map
View

Click here to load this message in the networking platform