Index
2001-05-14 12:42Andrew Dewey : Word Automation - determining if style exists
2001-05-15 00:35Anders Altberg : Re: Word Automation - determining if style exists
Back to top
Word Automation - determining if style exists

Author: Andrew Dewey

Posted: 2001-05-14 12:42:59   Link

I'm trying to use amembers() to test for the existence of a custom style.

I try:

nstyles = amembers(aStyles,oDoc.Styles)

and I get a result of 0. Will amembers work with non-fox objects, and if

so, what am I doing wrong.

Many Thanks,

Andrew

PS

This is the code I use to add the style:

oBodyStyle = oDoc.Styles.ADD( "Body", 1 )

Andrew Dewey

Acadia Computer Corp. Bar Harbor, ME

andrew@acadiacomp.com

©2001 Andrew Dewey
Back to top
Re: Word Automation - determining if style exists

Author: Anders Altberg

Posted: 2001-05-15 00:35:54   Link

Not until VFP7. Patience.

-A

----- Original Message -----

From: "Andrew Dewey" <andrew@acadiacomp.com>

To: "Multiple recipients of ProFox" <profox@leafe.com>

Sent: Monday, May 14, 2001 6:42 PM

Subject: Word Automation - determining if style exists

> I'm trying to use amembers() to test for the existence of a custom style.

>

> I try:

>

> nstyles = amembers(aStyles,oDoc.Styles)

>

>

> and I get a result of 0. Will amembers work with non-fox objects, and if

> so, what am I doing wrong.

>

> Many Thanks,

>

> Andrew

>

> PS

>

> This is the code I use to add the style:

> oBodyStyle = oDoc.Styles.ADD( "Body", 1 )

> Andrew Dewey

> Acadia Computer Corp. Bar Harbor, ME

> andrew@acadiacomp.com

>

>

>

©2001 Anders Altberg