 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
AZ Guest
|
Posted: Wed Jun 25, 2003 6:28 pm Post subject: Word StoryRanges |
|
|
Hi,
Can anyone tell me what I do wrong that the system raise an exception.
var
loleCount : OleVariant;
lRange : Range;
begin
for lCount := 1 to ActiveDocument.StoryRanges.Count do
begin
lRange := ActiveDocument.StoryRanges.Item(lCount);
end;
end;
if I do
loleCount := ActiveDocument.StoryRanges.Count it returns 4 (in my case),
lRange gets set ok when lCount = 1 but raises exception afterwards.
regards
|
|
| Back to top |
|
 |
AZ Guest
|
Posted: Thu Jun 26, 2003 7:09 am Post subject: Re: Word StoryRanges |
|
|
Sorted, there had been queries raised and are in the archieve (if anyone
intrested).
regards
"AZ" <xtcsuk (AT) yahoo (DOT) co.uk> wrote
| Quote: |
Hi,
Can anyone tell me what I do wrong that the system raise an exception.
var
loleCount : OleVariant;
lRange : Range;
begin
for lCount := 1 to ActiveDocument.StoryRanges.Count do
begin
lRange := ActiveDocument.StoryRanges.Item(lCount);
end;
end;
if I do
loleCount := ActiveDocument.StoryRanges.Count it returns 4 (in my case),
lRange gets set ok when lCount = 1 but raises exception afterwards.
regards
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|