Post Reply 
Bug?Android: two procedures in a file won't select exported subroutine
08-29-2015, 07:33 AM (This post was last modified: 08-29-2015 07:44 AM by StephenG1CMZ.)
Post: #1
Bug?Android: two procedures in a file won't select exported subroutine
I've got a file with a main procedure calling a subroutine. If both are EXPORT, I see an option to Run two procedures, but both have the name of the file/main procedure. Whether I tap 1 or 2, the main procedure rather than its subroutine executes.

EXPORT DD(parameters)
BEGIN
// draw rectangle
END
EXPORT MAIN
BEGIN
// for loop draw several rectangles using DD
END

It seems to me the Android version should be showing DD and MAIN as runnable, instead it is showing MAIN twice and asking which one to run.

Stephen Lewkowicz (G1CMZ)
https://my.numworks.com/python/steveg1cmz
Visit this user's website Find all posts by this user
Quote this message in a reply
08-30-2015, 01:32 AM
Post: #2
RE: Bug?Android: two procedures in a file won't select exported subroutine
Do you have ; after each end? Just a thought. Don't know if it would impact anything.


EXPORT DD(parameters)
BEGIN
// draw rectangle
END; // <----
EXPORT MAIN
BEGIN
// for loop draw several rectangles using DD
END; // <----

TW

Although I work for HP, the views and opinions I post here are my own.
Find all posts by this user
Quote this message in a reply
08-30-2015, 08:08 AM
Post: #3
RE: Bug?Android: two procedures in a file won't select exported subroutine
(08-30-2015 01:32 AM)Tim Wessman Wrote:  Do you have ; after each end? Just a thought. Don't know if it would impact anything.


EXPORT DD(parameters)
BEGIN
// draw rectangle
END; // <----
EXPORT MAIN
BEGIN
// for loop draw several rectangles using DD
END; // <----

Yes, and brackets after MAIN, sorry I omitted them here.
I've now taken out all the inner code, so you just have the standard EXPORT MAIN...END; preceded by a similar EXPORT DD...END; and the same thing happens.

Stephen Lewkowicz (G1CMZ)
https://my.numworks.com/python/steveg1cmz
Visit this user's website Find all posts by this user
Quote this message in a reply
08-30-2015, 08:46 PM (This post was last modified: 08-30-2015 08:48 PM by StephenG1CMZ.)
Post: #4
RE: Bug?Android: two procedures in a file won't select exported subroutine
If I switch to home and use the toolbox/User programs, I see DD and MAIN as expected. It's when I've finished editing that I see MAIN or MAIN.

Stephen Lewkowicz (G1CMZ)
https://my.numworks.com/python/steveg1cmz
Visit this user's website Find all posts by this user
Quote this message in a reply
09-04-2015, 07:32 PM
Post: #5
RE: Bug?Android: two procedures in a file won't select exported subroutine
Code:

EXPORT DD ()
BEGIN

END;

EXPORT TRY()
BEGIN

END;
Although the trivial example described above still doesnt show DD after editing (only from Home), whilst coding a more complete program I am often seeing more than one exported function after editing, as expected. I'm not sure exactly what change causes it to show/not show.

Stephen Lewkowicz (G1CMZ)
https://my.numworks.com/python/steveg1cmz
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 2 Guest(s)