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
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
>
>
>