Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Addin - Control Parent Name

5 views
Skip to first unread message

k_zeon

unread,
Jan 15, 2011, 2:39:44 PM1/15/11
to
Hi. Sorry for Multi post, just seen Addin Group

I have an Addin that lists all frames on a selected form.
I can select a frame in a list and then click to bring that one to the
top.
All works well

Except if a put another frame inside the first frame, both get added to
the
list. This is no good as you cannot get frame to be on top as it is
inside
the 1st Frame.

What i need to do is create a check before adding it to the list to see
what the Parent is ie Form1
If it is the Form1 then add to list, if the Parent is Frame1 then Do Not
add to list

I have tried for a few hours now with different combinations and For Next
loops but cannot get the correct syntax

what i would like it the following

Function IsFormControl ( sControlName as string) as boolean

if scontrolname.Parent = "Form1" then '<< This is what i cannot work out
IsFormControl = True
Else
IsFormControl =false
end if

end Function

hope someone can shed some light

thanks

Garry

0 new messages