LB Booster
« Output Long Datasets to a Text Window »

Welcome Guest. Please Login or Register.
Apr 1st, 2018, 04:32am



ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018.
We apologize Conforums does not have any export functions to migrate data.
Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.

Thank you Conforums members.
Speed up Liberty BASIC programs by up to ten times!
Compile Liberty BASIC programs to compact, standalone executables!
Overcome many of Liberty BASIC's bugs and limitations!
LB Booster Resources
LB Booster documentation
LB Booster Home Page
LB Booster technical Wiki
Just BASIC forum
BBC BASIC Home Page
Liberty BASIC forum (the original)

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Output Long Datasets to a Text Window  (Read 376 times)
Dacite
New Member
Image


member is offline

Avatar




PM


Posts: 6
xx Output Long Datasets to a Text Window
« Thread started on: Apr 13th, 2015, 9:56pm »

LB made me lazy - I use the mainwin to write long datasets, and if it's what I want then I save it. Previously in a DOS Basic I had 50 lines, so I would have to write to a file, shell out or switch windows to view the file. LBB has a mainwin with 84 lines, so it occurred to me to use a text window. Works great, and only adds 5 lines of code.
Code:
open "Test" for text as #te
#te "!trapclose [Done]"

'Put your code here
x = time$("ms")  'Just do something...
for i = 1 to 500
  print #te using("###", i); " Hello, World!"
next i
print "Done ";time$("ms") - x;" ms"

wait

[Done]
CLOSE #te
END 


EDIT: Note to self - the mainwin can be copied to the clipboard by pressing ctrl + Tab...
« Last Edit: Apr 15th, 2015, 6:57pm by Dacite » User IP Logged

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

| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls