April 23, 2024, 12:02:45 AM

News:

IonicWind Snippit Manager 2.xx Released!  Install it on a memory stick and take it with you!  With or without IWBasic!


Print output to selected lines

Started by GWS, October 29, 2007, 11:14:28 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

GWS

Here's a small example of positioning output on selected lines in a console window ..

openconsole
def x,y:float
def dummy:string

cls

locate 25,10
print "Enter -1 to Quit"

do

locate 5,10
print space$(60)

locate 5,10
input "Enter a Number - ", x

if (x < 0) then goto Exit

locate 7,10
print "Square Root of ",x,"   = ", sqrt(x)

locate 16,10
print "Press Enter to calculate another square root .. "

input dummy

locate 7,10
print space$(60)

until x < 0

do:until inkey$<>""
Exit:
closeconsole
end


best wishes, :)

Graham
Tomorrow may be too late ..