Function in OnStart() function.
Created at 22 Jan 2018, 00:23
XX
Function in OnStart() function.
22 Jan 2018, 00:23
I am trying to define the function for readable code.
something like this.
protected override void OnStart() { ...... int innerFunc(int n) { int i = n * 10; return i; }; ..... }
but I can't compile this.
Any Idea?
PanagiotisCharalampous
22 Jan 2018, 12:31
Dear Trader,
Thanks for posting in our forum. Functions cannot be defined within another function. See below how to define a new function in a cBot.
Let me know if the above helps you.
Best Regards,
Panagiotis
@PanagiotisCharalampous