Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to embed constants
Message
De
22/04/2008 10:47:26
 
 
À
21/04/2008 19:25:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
01312270
Message ID:
01312368
Vues:
21
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform