Just starting out? Need help? Post your questions and find answers here.
-
Manolo
- User

- Posts: 75
- Joined: Fri Apr 25, 2003 7:06 pm
- Location: Spain
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

Return to the forum
-
ricardo
- 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

- 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

Return to the forum