Baanboard.com

Go Back   Baanboard.com

User login

Frontpage Sponsor

Main

Poll
How big is your Baan-DB (just Data AND Indexes)
0 - 200 GB
18%
200 - 500 GB
29%
500 - 800 GB
3%
800 - 1200 GB
7%
1200 - 1500 GB
8%
1500 - 2000 GB
12%
> 2000 GB
23%
Total votes: 73

Baanboard at LinkedIn


Reference Content

 
to.form()
By patvdv at 26 Feb 2008 - 21:57

to.form()

Syntax

void to.form( long form_number )

Description

This forces a switch from the current form to the specified form. The form_number argument must specify an existing form in the session, and must be in the range one to the value of the predefined variable number.forms. During the switch operation, the after.form subsection of the current form is executed and the init.form and before.form subsections of the new form are executed. The init.form subsection is executed only the first time a form becomes current.

The following predefined variables are relevant to this function:

number.forms

indicates the total number of forms in the session

form.prev

indicates the previous form number

form.curr

indicates the current form number

form.next

indicates the next form number

Note

In a well-designed GUI, users (and not the application) select and initiate the actions to be performed. Using to.form() removes control from the user. Therefore it does not conform to good GUI design principles.

This function is not relevant for dynamic forms.

Context

4GL library function.

You can use this function only in 4GL scripts, and only in choice and form sections of those scripts.

Example

 | Suppose there is a special form (form 4) for a form command.
 | When the user chooses this command, form 4 is started.

 declaration:
         long old_curr_form

 function extern my.form.command()
 {
         old_curr_form = form.curr
         to.form( 4 )
 . . .   | perform some action(s)
         to.form( old_curr_form )
 }

Related topics


0
No votes yet


All times are GMT +2. The time now is 08:39.


©2001-2018 - Baanboard.com - Baanforums.com