HP50g - menu soft & problem of local procedures

Pls help!

Below is a simple program to illustrate the problem with a menu soft & updated local procedures

(-> and <-stand for left and right arrows)

Program works great under debugger! (displayed correctly SALDO and TRANS in response to press the soft keys)

But started him only gives error messages: "undefined local name.

According to the manual update of local variables (here < s and <-T) must be visible in the module of the whole program, or I don't unerstand not something?

Of course program works very well when the overall procedures are used instead of the premises.

Thanks in advance for your advice

< <

< < "SALDO" > >

< < "TRANS" > >

--> < s < t

< <

{

{"SALDO" < < < if EVAL > >}

{"TRANS" < < < t EVAL > >}

} MENU

> >

> >

Hello

A local variable has 1 main feature: a scope.

This range means that the variable only exists in this scope...

A scope is a 'physical' and time stretch (note the quotes around physics, it's because he's not real physics, but virtual physics).

Expand the 'physical' is the length/area of the program where there is the local variable. This extension from the definition of the local variable until the closure of the program block is more deep where the local variable is defined.

The measurement of time is the duration of execution of the execution of this program block.

There is a secondary feature: this is the name and it is the recognition by the system.

RPL, as in most languages, the basic rules of the gramar program allows a local variable to have a name any. Therefore, at first inseparable from a global variable. The compiler then uses his knowledge of the field of knowledge, when you type a name, if it is to create a local or global variable.

Until then, there is no problems in the definitions...

Now, let's look at your program (in essence)

< < 1 2 - > V1 V2

< <

{{V1 'V1'} {'V2' V2}} MENU

> >

> >

When the program runs, it creates 2 MENU items, and then OUTPUTS!

At the time where your more intimate program stops, local variables are destroyed (normal, follow the rules)...

HOWEVER, you left a temporary structure that is available to the user (in the menu) which contains references to these variables (which no longer exists)... When you press one of these keys to menu... KaBoom...

But what that <-syntax stuff?

Don't forget the 'physical' extension of the scope... It's all good and all... BUT it has some issues.

Namely, you cannot split your program into small chuncks, stored in various global variables to facilitate programming.

In most languages, and according to the rules defined above, you may not create a subroutine, using local variables that you plan to have exist in a "time extend" which covers the delivery of the subprogramme. This is true of most programming languages. The reason why you could not create this subroutine is that the compiler would not know/believe these variables are 'in the scope' during the compilation of the program (* see tip below).

The <-syntax allows this. It allows to force a variable to be compiled as local even outside the physical measure of the scope. But at the time of this call to the local variable, the variable MUST be defined, otherwise... KaBoom!

This is the heart of your misunderstanding...

To do what you want, you have 2 possibilities:

-Use global variables

-Put a STOP after the MENU statement (you must use TMENU BTW) and a SUITE at the end of execution of each of the menu items.

I hope this helps!

Cyrille

* trick below *.

The 50 HP has an environment / planning of circuits integrated very neat that lets you do the following to avoid having to type those pesky arrows back.

Create your top program with your local variable definitions (not necessary of arrows). Just after the definition of the local variable, place a STOP instruction. Run the program.

Now you can create your SUP program! When you press ENTER and the system compiles your program, these variable EXIST local (you are in their scope of TIME!) and your program will contain local variable rather than global calls!

However, this will not solve your problem.

Tags: HP Tablets

Similar Questions

  • HP50g - nested call local procedure - why does not work

    I am attaching the simple test program to illustrate the problem

    «
    "Ť N".
    "N N."
    »
    »
    '2 AA EVAL '.
    "AA BB Ť
    '3 AA BB EVAL EVAL '.
    »
    »

    (Ť means arrow to the right).

    Two local procedures are defined: the 1st (AA) makes the place of its setting and the 2nd (BB)

    calls AA.

    I expect 9 and 4 as the result (3 and 2 places). But the program gives:

    9

    2

    'AA '.

    Then call AA of BB does not work, why? How to make it work?

    Someone might he say?, thanks

    Resolved, solution was using local variables compiled, thanks anyway

  • I'm having the problem of local connection on my Dell PC with Vista. ISP is Verizon FIOS. FiOS representative told me to disable Ipv6 and the problem stops. Is this correct?

    I'm having the problem of local connection on my Dell PC with Vista. ISP is Verizon FIOS. FiOS representative told me to disable Ipv6 and the problem stops. Is this correct?

    original title: local area connection problem

    Hello

    1. What is the exact problem you are facing with local connection?

    2. how many computers have you plugged into the network?

    Please provide the information of network event logs to help you best.

    Click on the link below.

    http://Windows.Microsoft.com/en-us/Windows-Vista/using-Windows-Network-Diagnostics-event-logs-to-solve-network-problems

    In the meantime, run the troubleshooter mentioned in the link below.

    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-network-connection-problems

  • Plan does not show the local procedures/functions

    Hello

    SQLD 4.1

    I use the preview to a plsql procedure feature. The procedure provides a local procedure.

    In the window structure the local procedure does not at all. Declared variables and cursors in the local procedure are displayed, but as if they where in the main proceedings.

    Local procedures and functions should be displayed in the window structure. It would be nice if the declares the variables and cursors of a local proceeding would be arranged in suchs a means, it is visible that they belong to this local procedure, perhaps using an indentation.

    Best regards

    Joop

    Hey, Joop!

    A mysterious person, known only as "SF" for the purpose of this response, has also reported this to me. We have filed a bug on this subject, and it shows as 'fixed' in 4.1.1.

  • Problems with the procedure at the level of the stcok update

    Hi, I am new to Oracle and I have problems with this procedure.
    I had two tables, orders and inventories, and I want to update inventory quantities, when I received the order. For some reason, NULL keeps popping out. Someone help me pls with this!
    The tables are

    create table orders
    (order_no number (4) orders_nn_11 the NOT NULL constraint,)
    item_no number 4 orders_nn_3 of the NOT NULL constraint,
    order_qta number constraint orders_nn_4 NOT NULL,
    ORDER_DATE date NOT NULL constraint orders_nn_2,
    (date of receipt);
    and
    create the table stock
    item_no (4).
    Number of CQI,
    constraint stock_pk foreign key (item_no) references products (item_no);

    the procedure is here, but as I said I am new to this, so I really don't know.


    create or replace
    procedure recues1 (aorder_no in number, aitem_no in numbers, date received)
    is
    quantity number;
    number of quantity2;
    cursor a1 is select qta in stock where item_no = aitem_no;
    cursor a2 is order_qta selection of orders where order_no = aorder_no and item_no = aitem_no;
    Start
    Open a1;
    extract the a1 in quantity2;
    Open a2;
    Fetch a2 in quantity;
    stock update
    Define qta = quantity2 + quantity
    where item_no = aitem_no;
    Update orders
    received game = sysdate
    where order_no = aorder_no;
    near a1;
    Close a2;
    end;
    /

    Thanks in advance

    Hello
    Perhaps because ther eis no COMMIT.
    Or have I missed?

    Something like that

    .....
    
    close a1;
    close a2;
    commit;
    end;
    /
    

    Kind regards
    Bobin

  • Problem of local connection only. -After a five-minute Internet connection, the network of the changes at the local level only

    I connect to internet at the top 3 mobile broadband using the supplied usb Huawei 3 modem. It was fine for the first 4 days, it was working perfectly until 2 days ago. Now it connects fine but after about 1 minute of connection (sometimes more, up to 5 minutes max) the connection of the changes at the local level only. I searched the forum and website I can find solutions, but nothing seems to work. If I click on diagnose and repair I get an answer that is different each time, such as 'There could be a problem with one or more network adapters on this computer' or "Cannot communicate with the DNS server" or sometimes it says there is no problem even if it doesn't quite work. Sometimes disconnect and then reconnect works but then after a minute it goes to the local level only again. Any help would be appreciated, it gets very annoying to have to disconnect and reconnect every time that I need to go to another page.

    Here is the procedure to empty the DNS: http://www.mydigitallife.info/2008/08/21/how-to-flush-and-reset-dns-cache/ - but even if it's worth a try, I don't know it can solve your problem.

    If this does not work, then I suggest strongly since it's only a week or older that return you it to where you have it for a replacement or a service while it is still covered by the warranty.  There are several possible causes and we could spend a lot of time searching to find that it's a hardware problem.  They also know their systems better than we do, and maybe it's a simple configuration problem that has not been defined in law or has been accidentally changed after the first 4 days. In addition, more you mess with it, you, more likely they will tell you caused the problem and the warranty - and you certainly don't want that.

    I hope this helps.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • Win 7 problem: "the remote procedure call failed and did not execute."

    I logged on my account that has administrator access.  However, I just rebooted and find that I can't run from the desktop or the control panel.

    Similar problems there.  I use only a workgroup, not a domain

    Hi Bourayku,

    Please use the Microsoft Windows Forum.

    Try the following steps:

    Type services in the start menu search box.

    In Services, scroll down to "Remote Procedure Call", and make sure that the status is "started."

    and set to automatic.

    The second 'RPC Locator' must be set to "manual".

    (a) what is the error message he gets when they try to run.

    (b) are there any error messages in the dealing with RPC event viewer?

    Post back with answers

    Kind regards
    Aziz Nadeem - Microsoft Support

  • Firefox 38.0.1 window resized with menu bar problem

    After update to 38.0.1, I have the active menu bar, and I have a problem with the firefox window, changing size when displaying pages. The entire window jitters then I lose the bar menu at the top of the tab bar. at this point, I can't click or enter data into a web page. If I select the border of the window and resize or move the window back to its original with the menu bar size and displayed correctly tabs.

    I also developer of Firefox v 40.a02 it was OK last week I was last updated on 29/05 and now also has the same problem.

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem.

    • Put yourself in the DEFAULT theme: Firefox/tools > Modules > appearance
    • Do NOT click on the reset button on the startup window Mode safe

    You can try to disable hardware acceleration in Firefox.

    • Tools > Options > advanced > General > Browsing: "use hardware acceleration when available.

    You will need to close and restart Firefox after enabling/disabling this setting.

  • Toolbar Menu display problem

    Whenever I try to use any menu in Firefox, they sparkle inside and out. It is extremely difficult select Favorites or even Alt click on a link to "Open in New Tab" I have hover over menu items, they disappear and then come as soon as I move my mouse away.

    I've disabled all the Add-In, but the problem persists. The only way it goes is if I start Firefox in "safe" mode with all disabled while everything works correctly.

    Hello rob.seitzinger, try turning off hardware acceleration and check again, in safe mode, acceleration hardware is disable.

    Thank you

  • Menu toolbar problem and start for windows vista Home premium 64-bit

    I've recently been tweaking and accidentally got rid of my explorer.exe file, (I think that I sent to my trash and maybe deleted it?). Once I realized that I just typed as a new task and it reappeared.  The problem I have is that since then I had no toolbar or start menu.  I tried to access it through the control panel that does not work; I tried Ctrl Esc, which does not work, I tried everything I can think of? What's weird, that's all my desktop icons are great, and for some reason if I have Ghost click my mouse in the lower right of the screen I open random programs usually on my toolbar, I can even drag on my desk.  I tried to find common ground, if my toolbar is there somewhere?, do to slide it back on my screen, but it was done without success.  Another thing is when I start my computer in safe mode, my toolbar appears with my Start menu icon?  Anyone know what may be the problem?  I am running windows vista family premium. operating system: 64-bit

    Hello

    Method 1:

    As you are able to see the toolbar in safemode, I suggest that you perform the clean boot to limit the problem.

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7
    http://support.Microsoft.com/kb/929135

    Note: When the diagnosis is complete, don't forget to reset your computer to normal startup. Follow step 7 in the above article.

    Method 2:

    I suggest check the link and try to perform the checking and scan SFC (System File Checker) if it helps.

    How to use the System File Checker tool to fix the system files missing or corrupted on Windows Vista or Windows 7

    http://support.Microsoft.com/kb/929833

    Let us know if it helps.

  • Redirection problem strange local drive - white icons

    Someone has seen this before and no one knows the cause/solution?

    What is happening on our test/development configuration and our production environment (vWorkspace 7.1).

    When a user connects to a Windows 7 VDI session local endpoints devices are directed through, as shown here:

    But... when the same user connects to a Win2008 R2 RDS session, the redirected folders are missing and you get white icons that are inactive.

    The user is using folder redirection to move its profile folders (AppData, etc.) on a network share...

    Endpoints tested 2 with are Windows 7.

    Any ideas why this might be happening?

    See you soon,.

    Dan.

    Possibly a registry hive capturing the issue (or lack thereof).

    On the test in question account, there is no record capturing the policies put in place for the user. I set it up to capture booty HKCU\Software\Microsoft and HKCU\Control Panel.

    The client drives appear now.

    I will tune the registry capturing next week.

    Odd. Don't know if it's an underlying problem of the RDP/RDS but at least theres an autour work.

    I'm going to blame another admin here for now!

    Dan.

  • Strange Desktop / Start Menu redirection problem

    Hi all I have a very strange problem on a field of 2012 server using Windows 7 desktop computers.

    When a user connects for the first time the office menu and start to not redirected and I have the following error

    You cannot apply policy and redirect the "Desktop" folder to "\\SVR\Desktops$".
    Options of redirection = 0x1000.
    The following error occurred: "unable to generate a list of known subfolders.
    Details of the error: "the system cannot find the specified file.
    ".

    However on 2nd session opening the desktop and start menu are redirected properly.

    Description:
    Applied with political success and redirected folder "Desktop" to "\\SVR\Desktops$".
    Options of redirection = 0x1000.

    This seems also only affect the recent HP Prodesk computers, we started to use.

    Desktop and startmenu redirects are configured for a group of users and permissions are the following

    Share permissions - full control everyone

    Folder permissions - UserGRP Read and Execute only

    Any help would be appreciated

    Hello

    Thanks for posting your query in Microsoft Community.

    Your question is beyond the scope of what is generally answered in this forum of consumer and would be better suited for the IT Pro TechNet public.

    Please post your question in the TechNet Forums.

  • Problem in Local storage

    Hello

    I used the local storage. in phonegap, but there is problem I prepare new generation after the removal of the previous generation of the device data has been saved in this key.why this problem, in my view, there is suppression of local data when I delete the generation

    Hi ravi,
    Copy the following code

    localStorage.clear();
    

    This will help you to clear all values in localStorage.

  • Problem of local in BB10

    Hello

    I now use Async API to access the data of an image file and then write it on file system temporary application, so that I can access the same then:

    () window.requestFileSystem
    LocalFileSystem.TEMPORARY,
    0,
    Reminder of the success
    onPhotoWriterFileSystemReady,
    Reminder of failure
    failureCallback);

    Writer of local file for imagedata
    He wrote the image as a text file: userpic.txt
    function onPhotoWriterFileSystemReady (fileSystem) {}
    () fileSystem.root.getFile
    imageFilename,
    {create: true},
    Reminder of the success
    onPhotoWriterFileEntryReady,
    Reminder of failure
    errorCallback);

    Between in the queue and initializes the writer for writing on file.
    function onPhotoWriterFileEntryReady (fileEntry) {}
    () fileEntry.createWriter
    Reminder of the success
    onPhotoWriterFileWriterReady,
    Reminder of failure
    failureCallback);

    Writes base64 on local file data.
    function onPhotoWriterFileWriterReady (writer) {}
    Writer.onwrite = {function (evt)}
    setPhotoToDiv (pictureDataBase64);
    };

    Writer.Write (pictureDataBase64);
    }
    }
    }

    the code above fails to writer.onwrite () (means write operation failed), when I install the application and launch it for the first time. but on the launches subsequent write is successful.

    Why is the difference? What is the job that I have to avoid this kind of problem in my application, please suggest me.

    Hi lathajagan,

    I noticed that you pass 0 as the size when calling requestFileSystem(). Maybe that's why the write fails (it usually raises an error QUOTA_EXCEEDED).

    Try the following:

    requestFileSystem(TEMPORARY,1024*1024,success,error)
    
  • CIAC 4.0 manual installation, problems with the procedure

    Hi all

    I m trying to install the latest version of the CIAC and I m facing some problems on the configuration phase.

    I m using the following document:

    Cisco_Intelligent_Automation_for_Cloud_4.0_Installation_Guide.PDF

    Downloaded from the portal of Cisco.

    On page 34, we can found the procedure for installing the adapter of REX.

    The procedure is very confused and not able to find where to put the REXAdapter.xml I m, that it points to C:\Rex\Deploy, but the CIAC device is based on linux and not able to find this file on the server of the portal I m.

    Also the adk.zip is absent from packs of automation CPO.

    Thanks in advance,

    Alex.

    The 4.0 unit has already installed RexAdapter. You can view the list of Service link adapters.

Maybe you are looking for

  • I need help with a g4 pavilion operating system recovery

    Recently, I replaced the hard drive on my g4 pavilion laptop. The new hard drive doesn't do not have an operating system. I have no access to the old hard drive, but I got back up to an external memory. My question is that I'm able to use the files t

  • How to reinstall vista on the recovery drive D?

    About 2 years, a Sunday, my hard drive crashed and I was totally novice in time (as much as now, more I forgot the documentation provided with it, my "old" laptop Gateway) so I called a computer repair place listed on Craigslist (no classes please) a

  • Error code: 0x8000FFF (cannot install updates)

    Original title: problem installing updates My computer has trouble to download updates for windows vista. It gives me the error code ox8000FFF, I tried all sorts of things. What do you suggest me?

  • DeskJet 3845: Where'smy printer gone?

    My 3845 printer works OK but need the black cartridge has changed.   I put in a new, but with the printer does not respond so I replaced the cartridge with an another new cartridge.   All I get is the Green LED flashes (or turn it off completely).  T

  • confused about serial number HP Pavilion DV5-1110em battery

    I am in need a new battery for my HP Pavilion DV5-1110em and need to know what battery are compatible with this laptop model I'm confused as to what to buy. Printed on my battery are the numbers 'series REPLACEMENT-IB73' and at the bottom of the batt