Cancel
Showing results for 
Search instead for 
Did you mean: 

How to create and call a function with several arguments ?

Valued Contributor
Valued Contributor

Hi ,everyone!

As is shown  in the attachment, I create a method whose name is “getmin”,which passing several arguments, then I call it by  another method. However, it always reminders something wrong with the ”getmin” method. I need you great help , Thank you!

2 REPLIES

Re: How to create and call a function with several arguments ?

Gears Esteemed Contributor Gears Esteemed Contributor
Gears Esteemed Contributor

you need to define the data type of the return value ( -> dataType)

 

param  number1:integer,number2:integer
->integer
Steffen Bangsow
freelance simulation specialist  
web: www.bangsow.eu
mail: steffen@bangsow.net

Re: How to create and call a function with several arguments ?

Valued Contributor
Valued Contributor

Hi, steffen_B!

 

it works ,thanks for you answer.Althoughit is not an easy thing for me to grasp the syntax of simtalk2.0,I still insist studying it. I'll turn to expert like you for help when i am confussed.

Thanks this forums for disscussion!