I'm working my way thru the book, "Purebasic, A Beginners Guide to Computer Programming".
In all of the samples given, I am trying to user Print or PrintN instead of the Debug window.
Example: ( page 67 )
Code: Select all
Dim LongArray.l(2)
LongArray(0) = 10
LongArray(1) = 25
LongArray(2) = 30
Debug LongArray(0) + LongArray(1)
Debug LongArray(1) * LongArray(2)
Debug LongArray(2) - LongArray(0)
The above works fine as is, but I would also like to know how to use Print / PrintN
in place of Debug on the bottom 3 lines.
I've got other simpler examples to work using Print(Str(blah)), but the above
examples of adding, etc., have me stumped !
Thanks,
jim