neoSubroutine with parameter - Forum

Forum Navigation
You need to log in to create posts and topics.

neoSubroutine with parameter

I want an example of neoSubroutine with parameter.

@asmat

I want an example of neoSubroutine with parameter.

If you are asking to see a NeoScript subroutine with parameters, take a look at subroutines fmtSurname and fmtAge in the neoTable Tutorial Part I project; they are both of the NeoScript variety (you can also build ones using Javascript).

Is this what you were looking for, or something more (like perhaps a parameter to pass result back to the calling routine) ?

luishp has reacted to this post.
luishp

I want something like as you can see in the attachment.

Uploaded files:
  • You need to login to have access to uploads.

@asmat:

I have attached Subroutine-solution.neoapp with the answer.

Note that ...

1) I created a new subroutine named asmatSum (for some reason, the command wizard did not recognize your subroutine named sum).

2) I created asmatSum as a NeoScript Subroutine.

3) In the button code, when you type asmatSum and double click on it, you will be prompted to enter the parameters (which I named [parameter1] and [parameter2] and dsecribed as first integer and second integer.

4) What you enter in the Hint tab is what is displayed by the wizard at the bottom of the Dialog Box.

If you have additional questions, just ask here.

Uploaded files:
  • You need to login to have access to uploads.
luishp has reacted to this post.
luishp

Thank you so much Gaev.

It is helpful for me.