I am old and need new help

Just starting out? Need help? Post your questions and find answers here.
Manolo
User
User
Posts: 75
Joined: Fri Apr 25, 2003 7:06 pm
Location: Spain

I am old and need new help

Post by Manolo »

Please, check this function.

Procedure.l a()
a=a+a
b=a
procedurereturn a+b
endprocedure

repeat
debug a()
until a+b>0

Hehehe. Manolo :idea:
Return to the forum
ricardo
Addict
Addict
Posts: 2438
Joined: Fri Apr 25, 2003 7:06 pm
Location: Argentina

Post by ricardo »

Hi Manolo

a=0 that why a+a still 0

Giving a value to a changes all

Global a.l
a=1
Procedure.l a()
a=a+a
b=a
ProcedureReturn a+b
EndProcedure
Repeat
Debug a()
Until a+b>500
ARGENTINA WORLD CHAMPION
Manolo
User
User
Posts: 75
Joined: Fri Apr 25, 2003 7:06 pm
Location: Spain

Post by Manolo »

ricardo wrote:Hi Manolo

a=0 that why a+a still 0

Giving a value to a changes all

Global a.l
a=1
Procedure.l a()
a=a+a
b=a
ProcedureReturn a+b
EndProcedure
Repeat
Debug a()
Until a+b>500


Hehehe Ricardo.... Do you like my post??? And the results??? hehehehe


:mrgreen:
Return to the forum
Post Reply