Hi All,

Issue resolved. Code was correct and was in the correct places. I had never 
defined the variable (array) in the control’s property list! :-(
Sorry I couldn’t see the forest for the trees!

Ken Geiger

> On Jun 8, 2018, at 10:36 PM, Chip Scheide <[email protected]> wrote:
> 
> you have what appears to be the right code, but maybe not in the right 
> place(s)
> 
> In the form method:
> 
> Case of
> :(form event = on load)
>   // populate the tab control
>  ARRAY TEXT(arrPages;7)
>  LIST TO ARRAY(“Tabs”;arrPages)
> end case
> 
> Tab control method:
> case of
> :(form event = on clicked)
>  goto page(arrpages)
> end case
> 
> alternatively, I believe that there is a tab control property which will 
> allow you to have the tab control automatically goto the right page.
> ----
> I do not know what your form looks like, but if you are displaying a listbox 
> on each page of the form
> it is faster, and creates less over head to build the listbox dynamically (on 
> the fly).
> 
>> Hi All,
>> 
>> 4D v16.2, Windows
>> 
>> I’ve got a Tab Control located on Page 0 of an Input Form. I setup 
>> the Object Method exactly as per the docs:
>> 
>> ARRAY TEXT(arrPages;7)
>> 
>> Case of
>>  :  (Form event=On Load)
>>        LIST TO ARRAY(“Tabs”;arrPages)
>>  :  (Form event=On Clicked)
>>        FORM GOTO PAGE(arrPages)
>>  :  (Form event=On Unload)
>>        CLEAR VARIABLE(arrPages)
>> End case
>> 
>> Here’s the issue:
>> The “Tabs” List has seven items - all seven tabs display properly.
>> When I click a tab, it is obvious from the Control’s reaction that 
>> the clicked-tab now has focus.
>> However, the elements on the page selected do not appear!?!?!?
>> It appears that no matter what tab is clicked, Page 0 is the target.
>> 
>> As a test, i put <Previous Page> and <Nest Page> buttons on Page 0 of 
>> the form. When using these buttons, the elements on each page are 
>> displayed, as expected.
>> 
>> I’ve been beating on this for a while and nothing is making sense. 
>> Any help or suggestions would be MOST APPRECIATED.
>> 
>> Ken Geiger
>> 
>> 
>> **********************************************************************
>> 4D Internet Users Group (4D iNUG)
>> FAQ:  http://lists.4d.com/faqnug.html
>> Archive:  http://lists.4d.com/archives.html
>> Options: https://lists.4d.com/mailman/options/4d_tech
>> Unsub:  mailto:[email protected]
>> **********************************************************************
> ------------
> Hell is other people 
>     Jean-Paul Sartre

**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to