Search found 6 matches

by hugblue
Sat Dec 24, 2022 11:08 am
Forum: Coding Questions
Topic: howto with function, if possible.
Replies: 26
Views: 3174

Re: howto with function, if possible.

jacdelad wrote: Fri Dec 23, 2022 11:22 pm You seem to be not a bot (which is suspected first), so be welcomed in this forum and feel free to ask everything!
I come here to learn.

What would be the point to use a bot ? Makes no sense.
by hugblue
Fri Dec 23, 2022 7:57 pm
Forum: Coding Questions
Topic: howto with function, if possible.
Replies: 26
Views: 3174

Re: howto with function, if possible.

Thanks all ..

And sorry for continuing with the openGPT thing.
by hugblue
Fri Dec 23, 2022 3:22 pm
Forum: Coding Questions
Topic: howto with function, if possible.
Replies: 26
Views: 3174

Re: howto with function, if possible.



Looked in the manual first.
Then i came here.

And i do know about procedures.

You know about procedures?
And what did you read in the manual about functions?


Hi ..

I thought it would have been great if the chatGPT had been better.
It could have accelerated the learning processes.

When i ...
by hugblue
Thu Dec 22, 2022 10:13 pm
Forum: Coding Questions
Topic: howto with function, if possible.
Replies: 26
Views: 3174

Re: howto with function, if possible.


To run this code in an equal way, you need to define two macros, Function and EndFunction:
Macro Function
Procedure
EndMacro
Macro EndFunction
ProcedureReturn Multiply
EndProcedure
EndMacro

; Define the function
Function Multiply(x.i, y.i)
Multiply = x * y
EndFunction

; Define a result ...
by hugblue
Thu Dec 22, 2022 10:11 pm
Forum: Coding Questions
Topic: howto with function, if possible.
Replies: 26
Views: 3174

Re: howto with function, if possible.

Hi all ..

Yep. Its my first post.
And im not a bot.

And yes i use ChatGPT.
It kept saying there are functions.

So i just wanted to be sure.
Looked in the manual first.
Then i came here.

And i do know about procedures.

Thanks all.
by hugblue
Thu Dec 22, 2022 3:19 pm
Forum: Coding Questions
Topic: howto with function, if possible.
Replies: 26
Views: 3174

howto with function, if possible.

Hi ..

this :

Code: Select all

; Define the function
Function Multiply(x.i, y.i)
  Multiply = x * y
EndFunction

; Define a result variable
Define result.i

; Call the function
result = Multiply(5, 6)
Debug result
is not working.

Are there anyway to make it work in a equal way.

Thanks