Correct property.

There is compilation error in the code below.

The compilation error is due to the word vscrollbar.

What is the correct syntax.
public function boolean wf_init_dw_controls ()

integer li_count
integer li_idx
integer li_tab_page_count
integer li_tab_page_idx
integer li_tab_control_count
integer li_tab_control_idx
tab ltab_obj

li_count = upperbound(control)

for li_idx = 1 to li_count

	choose case control[li_idx].typeof()
case tab!
			ltab_obj = control[li_idx]
			li_tab_page_count = upperbound(ltab_obj.control)

			for li_tab_page_idx = 1 to li_tab_page_count
				li_tab_control_count = upperbound(ltab_obj.control[li_tab_page_idx].vscrollbar)

				for li_tab_control_idx = 1 to li_tab_control_count

					if ltab_obj.control[li_tab_page_idx].vscrollbar[li_tab_control_idx].typeof() = datawindow! then

						if long(ltab_obj.control[li_tab_page_idx].vscrollbar[li_tab_control_idx].dynamic event ue_initialize()) <> 0 then
							exit
						end if

					end if

				next

			next

	end choose

next

return li_idx > li_count

Open in new window

MehramAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

diasroshanCommented:
Hi,

Can u provide more details of what ur trying to achieve??
Also some screenshots of how ur screen looks will help.

Cheers,
Rosh
0
MehramAuthor Commented:
Creating tab page dynamically, want to use property vsscrollbar, fontpitch
0
sandeep_patelCommented:
I think you don't need to use property vscrollbar at all. I mean that property can't be used with CONTROL array directly. And looking at your code, if you remove this word (vscrollbar), it should work the way you want.

If I understand the logic correctly. It is..

1. For all controls on the window check if it is tab page
2. if tab page then for all controls on tag page check if it is datawinidow.
3. if it is datawindow call event ue_initialize.

And there is no need of vscrollbar.

Regards,
Sandeep
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
MehramAuthor Commented:
ok
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Editors IDEs

From novice to tech pro — start learning today.