Author |
Topic: Copy & Paste (Read 21 times) |
|
Cheemag
New Member
member is offline


Posts: 16
|
 |
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 ...)
|
|
Logged
|
Regards,
Cheemag
|
|
|
Richard Russell
Administrator
member is offline


Posts: 1348
|
 |
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.
|
|
|
|
|