nocchiero
28th March 2014, 16:33
how I can adding a new(2) button other previous ten button on a Form?

bhushanchanda
28th March 2014, 16:59
Hi,

Add a form command to your session with label = "New" and check the Show as Button checkbox to make it as a Default Button for the session using Form Command option in Session Properties.

mark_h
28th March 2014, 17:01
Not sure about LN or 4c2, but with 4c4 you are limited to like 10 user defined buttons.

bhushanchanda
28th March 2014, 17:04
Hi Mark,

I never wanted all of the 10 buttons on a form. I am used to with removal of the unwanted ones from the form's standard commands and add the required ones. So, may be LN has that restrictions as well.

mark_h
28th March 2014, 17:10
Not sure - but some of my users hate going to the menu bar for stuff. I never like 10 buttons on a form but I have a couple with 8 or 9 buttons and that is too many.

JaapJD
28th March 2014, 17:11
LN has no restriction in the number of form commands. Maybe the user has ;-).

mark_h
28th March 2014, 17:13
You mean in LN you could have more than 10 buttons on a form? How do you code for it? I guess I am used to the user.0 to user.9 event type coding.

JaapJD
28th March 2014, 17:30
user.0 to user.9 can still be used, but also self defined function names.

bhushanchanda
28th March 2014, 17:36
Hi Mark,

I can use form command name in the choice section.

i.e. Say I have a form command named process.data,

choice.process.data:
on.choice:
.....

Never used user.0, user.1...

AnuKass
18th February 2019, 06:57
what is different between user defined function and self defined function ?
if we use user.2 or some thing ,Is should be add in form commands ?

JaapJD
18th February 2019, 08:37
There is a special naming convention for the user.* choices in the program script. For example the function exec.user.0 is linked to choice.user.0 in the program script. The same applies to exec.cont.process, which is linked to choice.cont.process. All other functions that are used in form commands must be defined with keyword 'extern' with exactly the same name in the program script.