How to convert VB FOR EACH object IN test.application do

just write whatever you want
Post Reply
shadow110
Posts: 8
Joined: Tue Apr 27, 2004 6:26 pm

How to convert VB FOR EACH object IN test.application do

Post by shadow110 »

Hello.

I have a little ole question.. Mayby some of you have an idea.

I can crate my object with
var
test:olevariant;
begin
test:=createoleobject(test.application)

test.application is an enumeration object... now I need something like.

for each xyz in test do
begin
xyz.name := '123'
xyz.value :=
end;

Any ideas?

Greetings
Alex
madshi
Site Admin
Posts: 10764
Joined: Sun Mar 21, 2004 5:25 pm

Post by madshi »

I don't know how this works, but I guess it's something like this:

for i := low(test) to high(test) do begin
test.name := '123';
test.value :=
end;

Or maybe it's:

for i := 0 to test.ItemCount - 1 do begin

Or:

for i := 0 to test.Count - 1 do begin

General programming questions (which have nothing to do with madCollection) should better be asked on either Experts-Exchange or on the borland newsgroups. There are lots of experts sitting around waiting to answer such questions. You'll probably get better answers there than here for anything which is not related to my madCollection.
Post Reply