Liberty BASIC Community Forum
« Text editor command »

Welcome Guest. Please Login or Register.
Jan 23rd, 2018, 7:49pm


Rules|Home|Help|Search|Recent Posts|Notification


« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Text editor command  (Read 87 times)
alincon2001
Guru
ImageImageImageImageImage


member is offline

Avatar




PM


Posts: 510
xx Text editor command
« Thread started on: Dec 18th, 2017, 7:33pm »

LB help shows this text editor command.

print #handle, "!line n string$" ;
This returns the text at line n. n is standing in for a literal number.

But I have found that a variable can be used in place of n as long as you maintain the spaces, as in some other commands.
Code:
     x$ = ""
     #maint.teOneTbl, "!lines countVar" ;
     for n = 1 to countVar
        #maint.teOneTbl, "!line ";n;" txt1$";
        if txt1$ = "" then exit for
        x$ = x$ + txt1$ + " "
    next
 

Not revolutionary, but interesting to me.
r.m.
User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

Rules|Home|Help|Search|Recent Posts|Notification

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