Date   
Re: Android

Jerónimo Luis Dalla Via
 

Thank you very much Richard!!!

Best regards!!!

Saludos,

Jerónimo

-----Mensaje original-----
De: Richard Russell [mailto:richard@...]
Enviado el: jueves, 24 de octubre de 2019 19:09
Para: Jerónimo Luis Dalla Via <jeronimodallavia@...>
Asunto: Re: [bb4w] Android

On 24/10/2019 22:43, Jerónimo Luis Dalla Via wrote:
> I am trying to do an applet for Android. It runs fine on Windows but >
when I convert it to Android there is a problem running the APK.

Please read this document listing the differences between 'BBC BASIC for
Windows' and 'BBC BASIC for SDL 2.0':

https://www.bbcbasic.co.uk/bbcsdl/differences.html

Richard.



--
El software de antivirus Avast ha analizado este correo electrónico en busca de virus.
https://www.avast.com/antivirus

Android

Jerónimo Luis Dalla Via
 

Hello, how are you?!

 

I am trying to do an applet for Android. It runs fine on Windows but when I convert it to Android there is a problem running the APK.

 

I load an image using this:

 

     SYS "SetStretchBltMode", @memhdc%, 3

     *DISPLAY Imagen.bmp

 

How to load an image in Android program?

Where do I have to locate the BMP file?

 

Thank you very much!

 

Best regards!

 

Saludos,

 

Jerónimo

 


Libre de virus. www.avast.com

examples SQLite for Android

pianoyvoz.albert@...
 

Anyone know if there are examples to use SQLite
for Android?
Thank you

Re: VDU 2

 

Like many of my problems, the solution was simple, although I maintain I had never before had any such problem with any printer, including HPs.
The printer was not recognised as such.  It is my sole printer and, therefore, the default one but it suddenly burst into life when I entered one extra line:
*PRINTER HP DESKJET 2600 Series
I have never had to use this identifier before so believe I may be forgiven for not having thought to do so.
Anyway, it now works as it should.
Thank you for all assistance.

Re: multidem.bbc SLD

pianoyvoz.albert@...
 

Yes, I understand.
Don't worry, everything perfect.
Thank you for your information.
Regards

Re: multidem.bbc SLD

Richard Weir
 

Argh! Sorry, but I was barking up the wrong tree.

The "Multidem" BB4Win program is designed to show off the capabilities of the "multiwin.bbc" library. This library assists with the control of the multiple-windows capabilities of MS Windows. Android does not have any kind of multi-window capability, so there is no way that the "multiwin" library, nor the BASIC program that runs it, can work on Android devices. (The same applies to iOS devices!)

I was also confusing RAM and flash-RAM - apps are stored in flash-ram, data-structures used by the apps are stored in RAM. (You can free up small amounts of RAM by disabling or uninstalling apps which have some always-on capability such as Twitter, news-feed readers and other apps that generate alerts. But it is unlikely in the extreme that you would need to do so:- since apps are stored in and run from flash-RAM, all RAM is free for data and there is a lot of RAM so that large data such as video can be processed.)

Sorry for wasting your time with bad advice, I do hope you haven't been uninstalling apps on the basis of what I told you!

RCW

Re: multidem.bbc SLD

pianoyvoz.albert@...
 

Thanks for your reply.
Have you seen multidem.bbc or the multiwin.bbc library work on any Android phone?
thank you
regards

Albert

Re: multidem.bbc SLD

Richard Weir
 

Hello! I am pretty sure the problem is the phone has too little memory to run the app. You may be able to free up some memory by uninstalling apps, but you may need to buy a phone with more memory!

Good luck!

RCW.

multidem.bbc SLD

pianoyvoz.albert@...
 

Hello everyone,
When I use multidem.bbc in SDLIDE for windows, it works fine
but when I try to use it on my android phone once it has become .apk with the BBC2APK v1.01 application, it doesn't work and the message is "DIM space"
Anyone know what I can do wrong?
Thank you.

BBC Basic SDL: Reading GPS in Android?

Storer, Darren
 

Hi,

Has anyone been successful reading GPS status (lock, location and accuracy etc.) when running BBC Basic SDL routines on the Android platform?

Many thanks

Darren

Re: VDU 2

 

 

I greatly appreciate your help but unfortunately the *OUTPUT command does nothing either.

 

HP have been amazingly incompetent with their responses.  After finally sending a highly detailed six minute video (including links to BB4W) they actually asked, “Is VDU 2 the app you are using?”

 

I have thrown the printer in the bin and bought a Canon.  Everything working as it should.

 

The simplest command VDU 2, burst into life, printed my data, VDU 3 disabled.  Just like every other printer has done for decades, going back daisy wheels and dot matrix including numerous HPs.  

 

Thanks to all but I had had enough of HP’s stupidity and lack of simple comprehension.

 

   

 

From: Joe Burn
Sent: 08 October 2019 23:20
To: bb4w@groups.io
Subject: Re: [bb4w] VDU 2

 

Hi,

 

I don't know if this will help, but I had a similar problem (at work, HP 2060 printer on a local network) and found this worked:

 

      REM *** instead of

      REM VDU turn printer on, print, eject page and turn printer off

      REM VDU 2,1,12,3

 

      REM *** try this

      REM redirect output to (default) printer instead of screen

      *OUTPUT 15

 

      PRINT "This is printed"

 

      REM restore output to screen

      *OUTPUT 0

 

You may need to add a 'CLS' after this to force a print.

 

If no printer is set up then Windows will by default print to a '.pdf' file.

 

I got this after studying (at length) the 'Help' pages of BB4W.

 

Best Regards,

Joe.

From: bb4w@groups.io <bb4w@groups.io> on behalf of The Famous Cash via Groups.Io <thefamouscash@...>
Sent: 08 October 2019 03:52
To: bb4w@groups.io <bb4w@groups.io>
Subject: Re: [bb4w] VDU 2

 

Thanks but nothing can be done with the printer if it is not enabled.  (VDU 2).

 

Old programs using *PRINTERFONT et cetera have been  used, as has just about any command I can think of.

 

I always use VDU 2,1,12,3 to eject last page.

 

From: Andrew Cool
Sent: 08 October 2019 00:30
To: bb4w@groups.io
Subject: Re: [bb4w] VDU 2

 

Just a straw clutching thought. Perhaps write a small test program that exercises all the VDU codes that the printer _should_ understand.

In particular, the last line on the VDU 2 Help page, offers  vdu 2,1,12,3 to force the current page to print!

Andrew

VDU 2

VDU 2 enables the printer. It causes all subsequent text output to be sent to both the screen and the printer.

The following control characters are acted upon by the printer: cursor left (VDU 8), cursor right (VDU 9),
cursor down (VDU 10), cursor up (VDU 11), form feed (VDU 12), carriage return ( VDU 13) and home (VDU 30).

Bytes which are parameters for VDU commands are not sent to the printer. For example,

VDU 17,65

does not send 'A' (CHR$65) to the printer.

If you need to line up columns on the printer using TAB(X) ensure you select a monospaced (fixed-pitch) font, for example:

*PRINTERFONT Courier New,12

Note that BBC BASIC for Windows assumes that the printer is a page printer.
That is, output will not be printed until the current page is complete (i.e. a CLS or VDU 12 was sent, or the BASIC program terminates).
This ensures that printer output is not mixed up with that from other programs running at the same time. You can force the current page to print using:

VDU 2,1,12,3

 

 

Virus-free. www.avg.com

 

Re: VDU 2

 

Hi,

I don't know if this will help, but I had a similar problem (at work, HP 2060 printer on a local network) and found this worked:

      REM *** instead of
      REM VDU turn printer on, print, eject page and turn printer off
      REM VDU 2,1,12,3

      REM *** try this
      REM redirect output to (default) printer instead of screen
      *OUTPUT 15

      PRINT "This is printed"

      REM restore output to screen
      *OUTPUT 0

You may need to add a 'CLS' after this to force a print.

If no printer is set up then Windows will by default print to a '.pdf' file.

I got this after studying (at length) the 'Help' pages of BB4W.

Best Regards,
Joe.


From: bb4w@groups.io <bb4w@groups.io> on behalf of The Famous Cash via Groups.Io <thefamouscash@...>
Sent: 08 October 2019 03:52
To: bb4w@groups.io <bb4w@groups.io>
Subject: Re: [bb4w] VDU 2
 

Thanks but nothing can be done with the printer if it is not enabled.  (VDU 2).

 

Old programs using *PRINTERFONT et cetera have been  used, as has just about any command I can think of.

 

I always use VDU 2,1,12,3 to eject last page.

 

From: Andrew Cool
Sent: 08 October 2019 00:30
To: bb4w@groups.io
Subject: Re: [bb4w] VDU 2

 

Just a straw clutching thought. Perhaps write a small test program that exercises all the VDU codes that the printer _should_ understand.

In particular, the last line on the VDU 2 Help page, offers  vdu 2,1,12,3 to force the current page to print!

Andrew

VDU 2

VDU 2 enables the printer. It causes all subsequent text output to be sent to both the screen and the printer.

The following control characters are acted upon by the printer: cursor left (VDU 8), cursor right (VDU 9),
cursor down (VDU 10), cursor up (VDU 11), form feed (VDU 12), carriage return ( VDU 13) and home (VDU 30).

Bytes which are parameters for VDU commands are not sent to the printer. For example,

VDU 17,65

does not send 'A' (CHR$65) to the printer.

If you need to line up columns on the printer using TAB(X) ensure you select a monospaced (fixed-pitch) font, for example:

*PRINTERFONT Courier New,12

Note that BBC BASIC for Windows assumes that the printer is a page printer.
That is, output will not be printed until the current page is complete (i.e. a CLS or VDU 12 was sent, or the BASIC program terminates).
This ensures that printer output is not mixed up with that from other programs running at the same time. You can force the current page to print using:

VDU 2,1,12,3

 


Virus-free. www.avg.com

Re: VDU 2

 

Thanks but nothing can be done with the printer if it is not enabled.  (VDU 2).

 

Old programs using *PRINTERFONT et cetera have been  used, as has just about any command I can think of.

 

I always use VDU 2,1,12,3 to eject last page.

 

From: Andrew Cool
Sent: 08 October 2019 00:30
To: bb4w@groups.io
Subject: Re: [bb4w] VDU 2

 

Just a straw clutching thought. Perhaps write a small test program that exercises all the VDU codes that the printer _should_ understand.

In particular, the last line on the VDU 2 Help page, offers  vdu 2,1,12,3 to force the current page to print!

Andrew

VDU 2

VDU 2 enables the printer. It causes all subsequent text output to be sent to both the screen and the printer.

The following control characters are acted upon by the printer: cursor left (VDU 8), cursor right (VDU 9),
cursor down (VDU 10), cursor up (VDU 11), form feed (VDU 12), carriage return ( VDU 13) and home (VDU 30).

Bytes which are parameters for VDU commands are not sent to the printer. For example,

VDU 17,65

does not send 'A' (CHR$65) to the printer.

If you need to line up columns on the printer using TAB(X) ensure you select a monospaced (fixed-pitch) font, for example:

*PRINTERFONT Courier New,12

Note that BBC BASIC for Windows assumes that the printer is a page printer.
That is, output will not be printed until the current page is complete (i.e. a CLS or VDU 12 was sent, or the BASIC program terminates).
This ensures that printer output is not mixed up with that from other programs running at the same time. You can force the current page to print using:

VDU 2,1,12,3

 


Virus-free. www.avg.com

Re: VDU 2

Andrew Cool
 

Just a straw clutching thought. Perhaps write a small test program that exercises all the VDU codes that the printer _should_ understand.

In particular, the last line on the VDU 2 Help page, offers  vdu 2,1,12,3 to force the current page to print!

Andrew

VDU 2

VDU 2 enables the printer. It causes all subsequent text output to be sent to both the screen and the printer.

The following control characters are acted upon by the printer: cursor left (VDU 8), cursor right (VDU 9),
cursor down (VDU 10), cursor up (VDU 11), form feed (VDU 12), carriage return ( VDU 13) and home (VDU 30).

Bytes which are parameters for VDU commands are not sent to the printer. For example,

VDU 17,65
does not send 'A' (CHR$65) to the printer.

If you need to line up columns on the printer using TAB(X) ensure you select a monospaced (fixed-pitch) font, for example:

*PRINTERFONT Courier New,12
Note that BBC BASIC for Windows assumes that the printer is a page printer.
That is, output will not be printed until the current page is complete (i.e. a CLS or VDU 12 was sent, or the BASIC program terminates).
This ensures that printer output is not mixed up with that from other programs running at the same time. You can force the current page to print using:
VDU 2,1,12,3

Re: VDU 2

 

 

Thanks again but it is only printing out data.  No file or file name is created.

 

 

From: wilsr747
Sent: 07 October 2019 21:05
To: bb4w@groups.io
Subject: Re: [bb4w] VDU 2

 

My Epson printer sometimes by itself prints to pdf or file unless I go to “properties ” and     change to itself. Could it be as simple as it is continually creating your output as a file somewhere?


On 7 Oct 2019, at 11:53 pm, The Famous Cash via Groups.Io <thefamouscash@...> wrote:

Thank you for your contact.

 

Like yourself, I lack knowledge about “standard” computing techniques.

 

The printer is visible at all times.  It prints everything as one would expect. Which is why HP won’t have any further communication.  They say it works; end of story.)

 

The only complaint is that it does not appear to recognize VDU 2 which I have used with many printers for decades.

 

In a logical progression to attempt to trace the problem, I eventually managed to use USB connection solely, in case it was something to do with WIFI but to no avail.

 

I am at a loss to know what to do but spending about ten hours a day banging my head at every possibility no matter how extreme.

 

From: nbadderley via Groups.Io
Sent: 07 October 2019 08:25
To: bb4w@groups.io
Subject: Re: [bb4w] VDU 2

 

I offer this from the standpoint of a complete ignoramus regarding Windows but a user of BBC BASIC and BB4W for many years. My Canon printer often ‘disappeared’ from Windows (‘Printer is offline’) but, in that state (without touching anything) worked through WiFi from iPhones and iPads. I now leave it hard wired via USB to the PC and WiFi for Apple devices etc. Do you have to use WiFi for your application?


On 7 Oct 2019, at 04:24, The Famous Cash via Groups.Io <thefamouscash@...> wrote:

 

Yes.  Only the screen.

 

I am not familiar with that command and did not know what to expect.

 

I had to sort a big problem I created.  Following some web stuff which seemed a possibility, I changed printer to generic text-only (I forget exactly) and changed the port.

 

It did not work and everything was a mess but I got back to re-installing the HP.

 

Incidentally, I doubt it is of consequence but I note each time I install the HP two versions appear.  One says “HP Deskjet 2600 series”, the other, “HPCBB487 (HP Deskjet 2600 series)”.

 

 

 

From: J.G.Harston
Sent: 07 October 2019 03:00
To: bb4w@groups.io
Cc: The Famous Cash via Groups.Io
Subject: Re: [bb4w] VDU 2

 

On 07-10-2019 01:20, The Famous Cash via Groups.Io wrote:

> COPY whateverthetextfile.txt LPT showed 1 file copied. (I don’t know

> where.)

>

> COPY whateverthetextfile.txt also shoed 1 file as copied.

>

> On typing subsequent COPY statements, the file appeared on screen.

 

On the screen, not on the printer? That's a puzzle. I wonder if

your system has some sort of virtual driver attached to the

logical LPT device and is redirecting it somewhere.

 

(I once had a problem with a user insisting that unzip wouldn't

work, and I had to go to his house and actually see what was

happening. He had some sort of software that forced the filing

system to see files with a .zip extension as directories, so

unzip was always falling over with a 'XXX is a directory' error.)

 

--

J.G.Harston - jgh@... - mdfs.net/jgh

 

 

 

 

Virus-free. www.avg.com

 

 

Re: VDU 2

wilsr747
 

My Epson printer sometimes by itself prints to pdf or file unless I go to “properties ” and     change to itself. Could it be as simple as it is continually creating your output as a file somewhere?

On 7 Oct 2019, at 11:53 pm, The Famous Cash via Groups.Io <thefamouscash@...> wrote:

Thank you for your contact.

 

Like yourself, I lack knowledge about “standard” computing techniques.

 

The printer is visible at all times.  It prints everything as one would expect. Which is why HP won’t have any further communication.  They say it works; end of story.)

 

The only complaint is that it does not appear to recognize VDU 2 which I have used with many printers for decades.

 

In a logical progression to attempt to trace the problem, I eventually managed to use USB connection solely, in case it was something to do with WIFI but to no avail.

 

I am at a loss to know what to do but spending about ten hours a day banging my head at every possibility no matter how extreme.

 

From: nbadderley via Groups.Io
Sent: 07 October 2019 08:25
To: bb4w@groups.io
Subject: Re: [bb4w] VDU 2

 

I offer this from the standpoint of a complete ignoramus regarding Windows but a user of BBC BASIC and BB4W for many years. My Canon printer often ‘disappeared’ from Windows (‘Printer is offline’) but, in that state (without touching anything) worked through WiFi from iPhones and iPads. I now leave it hard wired via USB to the PC and WiFi for Apple devices etc. Do you have to use WiFi for your application?


On 7 Oct 2019, at 04:24, The Famous Cash via Groups.Io <thefamouscash@...> wrote:

 

Yes.  Only the screen.

 

I am not familiar with that command and did not know what to expect.

 

I had to sort a big problem I created.  Following some web stuff which seemed a possibility, I changed printer to generic text-only (I forget exactly) and changed the port.

 

It did not work and everything was a mess but I got back to re-installing the HP.

 

Incidentally, I doubt it is of consequence but I note each time I install the HP two versions appear.  One says “HP Deskjet 2600 series”, the other, “HPCBB487 (HP Deskjet 2600 series)”.

 

 

 

From: J.G.Harston
Sent: 07 October 2019 03:00
To: bb4w@groups.io
Cc: The Famous Cash via Groups.Io
Subject: Re: [bb4w] VDU 2

 

On 07-10-2019 01:20, The Famous Cash via Groups.Io wrote:

> COPY whateverthetextfile.txt LPT showed 1 file copied. (I don’t know

> where.)

>

> COPY whateverthetextfile.txt also shoed 1 file as copied.

>

> On typing subsequent COPY statements, the file appeared on screen.

 

On the screen, not on the printer? That's a puzzle. I wonder if

your system has some sort of virtual driver attached to the

logical LPT device and is redirecting it somewhere.

 

(I once had a problem with a user insisting that unzip wouldn't

work, and I had to go to his house and actually see what was

happening. He had some sort of software that forced the filing

system to see files with a .zip extension as directories, so

unzip was always falling over with a 'XXX is a directory' error.)

 

--

J.G.Harston - jgh@... - mdfs.net/jgh

 

 

 

 

Virus-free. www.avg.com

 

Re: VDU 2

Richard
 

Hi there,
Glad to see you've got some way round...I used to think HP printers/ software were good but now I'm not so sure...
I recently bought an Epson XP5100 wireless printer for only£60 (ink relatively cheap too)..I can print remotely by email..
much cheaper and better (if slower and lower quality) than the HP printers I've used so far. hope it works out better soon.
R

Re: VDU 2

 

 

 

I thought I’d sent a response but can’t even find that now!  At the risk of duplication. . . .

 

Thank you but that link is for “Advantage” model.  Mine is just “600”.  Having said that, I can find no reference to ascii.

 

Attached 2600 manual which produces no result for “ascii” search and four results for “printer supports”.

 

 

 

From: J.G.Harston
Sent: 07 October 2019 17:28
To: bb4w@groups.io
Subject: Re: [bb4w] VDU 2

 

On 07-10-2019 17:21, The Famous Cash via Groups.Io wrote:

> I can’t find that reference any more!

> Is it really just me?

 

It's not just you, I've just lost it as well, and can't remember what

search terms I used to find it.

 

Looking in my browser history, though, gives me

http://h10032.www1.hp.com/ctg/Manual/c02538772.pdf

 

--

J.G.Harston - jgh@... - mdfs.net/jgh

 

 

 


Virus-free. www.avg.com

Re: VDU 2

J.G.Harston
 

On 07-10-2019 17:21, The Famous Cash via Groups.Io wrote:
I can’t find that reference any more!
Is it really just me?
It's not just you, I've just lost it as well, and can't remember what
search terms I used to find it.

Looking in my browser history, though, gives me
http://h10032.www1.hp.com/ctg/Manual/c02538772.pdf

--
J.G.Harston - jgh@... - mdfs.net/jgh

Re: VDU 2

 

Hmmm.  Further update.

 

I have the onset of dementia but, on being requested by HP for a video of the problem, downloaded their manual (as referred to previously) which shoed it supported direct print from us-ascii. . . .

 

I can’t find that reference any more!

 

Is it really just me?

 

From: The Famous Cash via Groups.Io
Sent: 07 October 2019 16:45
To: bb4w@groups.io
Subject: Re: [bb4w] VDU 2

 

 

Thank you for your help.

 

Unfortunately, I can print any PDF, or “normal” file for that matter.  In fact, since this problem,, I have cobbled together a convoluted means to save some data to different files which can then be printed.

 

Just simply cannot get printer to print from program using VDU 2.

  

 

From: Richard via Groups.Io
Sent: 07 October 2019 15:43
To: bb4w@groups.io
Subject: Re: [bb4w] VDU 2

 

This might not work on all systems, but if you select the printed output to pdf document, rather than  any specific printer, you can print, using VDU 2 to a pdf... then you can print that pdf.  My Acer Laptop (Windows 10) allows this.  the simple code below
   10 REM PRINTER
      VDU 2
      FOR X=1TO10
        PRINT "hI THERE!"
      NEXT
      VDU 3
      STOP
prints to a pdf file, if specified or if no other printer is selected...Windows 10 settings-> devices-> printers and scanners -> microsoft print to pdf?.. you save the output to a pdf file, which you name then print that file
hI THERE!
hI THERE!
hI THERE!
hI THERE!
hI THERE!
hI THERE!
hI THERE!
hI THERE!
hI THERE!
hI THERE!

 

 

Virus-free. www.avg.com