TOleEnum in Delphi5
Ahhh...
Just use any of the constants from Word97.pas:
// MsoZOrderCmd constants
type
MsoZOrderCmd = TOleEnum;
const
msoBringToFront = $00000000;
msoSendToBack = $00000001;
msoBringForward = $00000002;
msoSendBackward = $00000003;
msoBringInFrontOfText = $00000004;
msoSendBehindText = $00000005;
For instance,
uses Word97;
WordDocument.selection.shaperange.zorder(msoBringToFront)
Again, TOleEnum is simply an enum data type - like an integer.
have fun
--
Binh Ly
Visit my COM Notes at http://www.castle.net/~bly/com
Quote
Annapurna <annapur...@yahoo.com> wrote in message
news:7tjmb1$2m88@forums.borland.com...
Quote
> Let me explain you my problem.I have intialised a word document from my
> Delphi code.I have used Word Components in Delphi5.I need to use the
command
> WordDocument.selection.shaperange.zorder(msosendbackward)
> for a particular rectangle in the document.The argument msosendbackward
> should be of type TOleEnum.I do not understand what this is and how I can
> use it.Please help me.I need it immedietly.I did not much in the Delphi
> Help.