Board Logo
« "AT x,y" PRINT modifier »

Welcome Guest. Please Login or Register.
Sep 25th, 2017, 7:09pm


Conforums Terms of Service | Membership Rules | Home | Search | Recent Posts | Notification | Format Your Message | Installation FAQ

Please use the forums Search feature before asking.
Please post code using the code box described in Format Your Messages.
This will keep indentation, separate it better form the message and prevent gibberish.
If the code is too long for one post or additional files are needed, upload a ZIP archive to the Just BASIC Files Archive Site.

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: "AT x,y" PRINT modifier  (Read 309 times)
tsh73
JB-Supporter


member is offline

Avatar




PM

Gender: Male
Posts: 3553
xx "AT x,y" PRINT modifier
« Thread started on: Nov 16th, 2016, 03:36am »

Well, kind of.
You add a function
Code:
function at$(x,y)   'to be used as print modifier
    locate x,y
end function 

and then instead of Code:
locate 30,10
print "Hello there" 
you can use Code:
print at$(10,15);"Hello" 


BUT
Actually it's a function with a side effect
and (it looks like) first all arguments are evaluated - tha is, functions called and all LOCATE got executed - then actual printing is made.
So Code:
print "there at 20 20";at$(20,20) 
works too
And Code:
print at$(10,17);"Hello";at$(20,16);"there" 
prints all text at last position.

Still nice, IMHO ;)
User IP Logged

Q: "And if I took your codes and compile them, and sell them for a profit"?
A: Go ahead. I had my share of good then I coded it for fun, if you can make better use of it - please do.
(enjoying JB 1.01 on WinXP, netbook and desktop)
Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

Conforums Terms of Service | Membership Rules | Home | Search | Recent Posts | Notification | Format Your Message | Installation FAQ

Donate $6.99 for 50,000 Ad-Free Pageviews!

| |

This forum powered for FREE by Conforums ©
Sign up for your own Free Message Board today!
Terms of Service | Privacy Policy | Conforums Support | Parental Controls