The only reason is to learn as one never knows when or indeed if what one learns will be useful.
Create two subroutines one for dot and one for dash. Then in main D will be
Gosub Dash
Gosub Dot
Gosub Dot
Just as a start.
The only reason is to learn as one never knows when or indeed if what one learns will be useful.
Create two subroutines one for dot and one for dash. Then in main D will be
Gosub Dash
Gosub Dot
Gosub Dot
Just as a start.
Steve Earl www.datageo.co.uk
Hi
Thank you…. Pity I couldn't have them all on same line…:-
D: GOSUB Dash, Dot, Dot
Or could I ?
TY Again !!
2.50C
Thinking of PBP3 Silver but is it that much different…?
Ah OK…..
Maybe stay where I am then :-)
Arrays are a hole new minefield for me….. Although I am OK with my Antenna Array on the roof. (Radio Ham)
Whole lot of learning for me yet!
BR and TY
Andy
Have a go with gosubs as a start, we can progress to arrays later. I could write examples for you but I believe you will learn more doing it yourself. As always if you need help just ask.
Steve Earl www.datageo.co.uk
From the book...
4.13. Multi-statement Lines
In order to allow more compact programs and logical grouping of related commands, PBP supports the use of the colon (to separate statements placed on the same line. Thus, the following two examples are equivalent:
W2 = W0
W0 = W1
W1 = W2
is the same as:
W2 = W0 : W0 = W1 : W1 = W2
This does not, however, change the size of the generated code.
Dave
Always wear safety glasses while programming.
Bookmarks