08-20-2022, 04:52 PM
@PhilofPerth
I am with the affirmation of funny Pyton people..t shared by Bplus at #3
SUB cannot work like a FUNCTION, while a FUNCTION can work like a SUB (just you let return a dummy value to it, as you can do in C/C++ or make a Void function).... with the exception that you need a variable in which you put the result of function
you can use the dummy value to know if Function runs well or no setting the result False at beginning of Function and True on natural exiting from it.
Yes I must admit that it is boring typewrite dummy$ = MakeSquare$(X1,Y1, X2,Y2,Colors) at place of MakeSquare X1,Y2,X2,Y2,Colors
I am with the affirmation of funny Pyton people..t shared by Bplus at #3
SUB cannot work like a FUNCTION, while a FUNCTION can work like a SUB (just you let return a dummy value to it, as you can do in C/C++ or make a Void function).... with the exception that you need a variable in which you put the result of function
you can use the dummy value to know if Function runs well or no setting the result False at beginning of Function and True on natural exiting from it.
Yes I must admit that it is boring typewrite dummy$ = MakeSquare$(X1,Y1, X2,Y2,Colors) at place of MakeSquare X1,Y2,X2,Y2,Colors