LB Booster
« Copy & Paste »

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



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: Copy & Paste  (Read 19 times)
Cheemag
New Member
Image


member is offline

Avatar




PM


Posts: 16
xx Re: Copy & Paste
« Reply #5 on: Feb 13th, 2016, 3:19pm »

on Feb 10th, 2016, 12:46pm, tsh73 wrote:
if " simple text-only proggy" refers to mainwin, then LB/JB does not allow paste.
That is you can pretend you paste - but Input will not read it.


I'm afraid it does: you can cut, copy and paste with the mouse in a prog compiled with Liberty Basic 4 (v4.04) in Windows 7. I've just checked it. Marked and context-menu-copied string goes into my clipboard and can be pasted normally.

Try it !

Regards

Cheemag
User IP Logged

Regards,

Cheemag
tsh73
Full Member
ImageImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 210
xx Re: Copy & Paste
« Reply #6 on: Feb 13th, 2016, 3:46pm »

Doesn't work for me, LB 404, Win7
Code:
print "hello there"
input a$
print "got";a$
input "press enter";a$ 
 

I run it - select "there" - make Copy from context menu - click after (?) - select "paste" from context meny
It visibly paste but program prints "got" that is got nothing.
EDIT
(and it was compiled EXE)
« Last Edit: Feb 13th, 2016, 3:46pm by tsh73 » User IP Logged

Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 1348
xx Re: Copy & Paste
« Reply #7 on: Feb 13th, 2016, 5:43pm »

on Feb 13th, 2016, 3:19pm, Cheemag wrote:
I'm afraid it does: you can cut, copy and paste with the mouse in a prog compiled with Liberty Basic 4 (v4.04) in Windows 7. I've just checked it.

It doesn't work for me either; checked using the code Anatoly listed, using LB 4.5.0.

Are you sure you're not being misled by the fact that it appears to work (visually), even though nothing arrives in the variable returned from INPUT?

It's true that you can't paste using the mouse in LBB, but you can by typing Ctrl+V and, unlike JB/LB, it actually works!

Richard.
« Last Edit: Feb 13th, 2016, 7:59pm by Richard Russell » User IP Logged

Cheemag
New Member
Image


member is offline

Avatar




PM


Posts: 16
xx Re: Copy & Paste
« Reply #8 on: Feb 22nd, 2016, 8:05pm »

on Feb 13th, 2016, 5:43pm, Richard Russell wrote:
It doesn't work for me either; checked using the code Anatoly listed, using LB 4.5.0.

Are you sure you're not being misled by the fact that it appears to work (visually), even though nothing arrives in the variable returned from INPUT?

It's true that you can't paste using the mouse in LBB, but you can by typing Ctrl+V and, unlike JB/LB, it actually works!

Richard.


Something odd here. I assure you it works in LB v4.04 in Windows 7 Home Premium 64-bit.

I ran the 'hello world' programme above and was able to copy 'hello world' and paste it into a text editor using the mouse to mark it then right-click 'Copy'.

It also worked compiled and had menu-bar items 'File' and 'Edit' in the window in both compiled and interpreted versions. The 'Edit' dropdown could be used to copy to the clipboard after marking.

Must emphasise I'm talking about Liberty Basic and not LBB. I asked because I wondered why I had this facility in LB but not LBB.

Regards,

Cheemag.

PS I'll post the window output as graphic if you don't believe me ! (If I can find out how to post it ...)


User IP Logged

Regards,

Cheemag
Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 1348
xx Re: Copy & Paste
« Reply #9 on: Feb 23rd, 2016, 09:16am »

on Feb 22nd, 2016, 8:05pm, Cheemag wrote:
I ran the 'hello world' programme above and was able to copy 'hello world' and paste it into a text editor using the mouse to mark it then right-click 'Copy'.

Yes, that is copying from the mainwin (not pasting to the mainwin which is what Anatoly and I have been talking about). As documented in the LBB manual, copying from the LBB mainwin works differently from JB/LB - you have to use the Ctrl+Tab hotkey to do that.

Quote:
It also worked compiled and had menu-bar items 'File' and 'Edit' in the window in both compiled and interpreted versions. The 'Edit' dropdown could be used to copy to the clipboard after marking.

Again, that is a documented difference between LB and LBB. Look in the LBB help file under 'Compatibility':

"7. The mainwin can hold only about 84 lines of text; if more lines are output the remainder will be 'scrolled off' the top of the window and lost. Also, the mainwin has no menu. You can copy the contents of the mainwin onto the clipboard by typing Ctrl+Tab".

Quote:
I asked because I wondered why I had this facility in LB but not LBB.

I explained that before. Because the Liberty BASIC mainwin is intended primarily as a debugging aid, and because you are recommended to include a NOMAINWIN statement in a finalized compiled program, it seemed to me (and it still does) that providing a greater degree of compatibility with LB - which would have been difficult - was not justified. Making the LBB mainwin compatible with the BBC BASIC mainwin was considerably easier and provides facilities that LB doesn't (such as colored text, Unicode, graphics and font changes).

The point which you still seem to be missing is that pasting into the mainwin works properly in LBB (using the Ctrl+V keyboard shortcut) but doesn't work in LB. This is a significant limitation of LB because when entering a response to an INPUT statement it appears that you can paste in text but in fact you can't.

Richard.
« Last Edit: Feb 23rd, 2016, 09:25am by Richard Russell » 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