Z-Space Technologies, Inc.
Support Forums
Join | Logon
ITScriptNet Support Forums
 All Threads | New ThreadView:  Search:  
 Author  Thread: Re-usable calculator
Bob
Posts: 8
Re-usable calculator
Posted: 19 Apr 11 7:35 AM
Has anyone written a simple calulator that I could re-use?
[Reply][Quote]
Alex
Posts: 9
Re: Re-usable calculator
Posted: 19 Apr 11 5:55 PM
Hi Bob,

There are multiple ways that you can launch a calculator from within ITScriptNet. These examples are based on Windows mobile 5/6; the Windows-based calculator feature is not available in Windows CE.

1. ITScriptNet includes a “Shell” function which you can use to call your device's built-in calculator. You could do this by creating an "on click" event. Example: Shell("\Windows\Calc.exe", 0).

2. You could create a new calculator prompt within your existing ITB program. If you would like to receive an example calculator ITB program, please use the link below to submit a support request. Be sure to include your contact information.

http://www.z-space.com/SupportRequest.asp

3. If you are running ITScriptNet version 3.0 or above, there is a function called "CallITB." This function can be used to call a second data collection program. This could also be placed into an "on click" event in your program. Example event: CallITB("Calc.itb").
[Reply][Quote]
Bob
Posts: 8
Re: Re-usable calculator
Posted: 21 Apr 11 8:24 AM
Thanks (support) for sending me your calculator program. It works fine. I'm using it to add up Goods Received so I've amended it to show a list of entries for each calculation you do - the user can then review before accepting.
[Reply][Quote]
Sal
Posts: 6
Re: Re-usable calculator
Posted: 27 Feb 12 2:07 PM
Quote:
Originally posted by Alex

Hi Bob,

3. If you are running ITScriptNet version 3.0 or above, there is a function called "CallITB." This function can be used to call a second data collection program. This could also be placed into an "on click" event in your program. Example event: CallITB("Calc.itb").


Ok, I assume the above statement means the 2nd ITB is located either (1) on the machine, or (2) in the working directory on the PC used for debugging. If I'm wrong, please correct me. However, assuming I am right, I have an on click that simply says CallITB("DATA.itb"). The on click is a button on a screen, and per documentation when clicked, should open the new itb screen. And... it does nothing. I cannot find any decent samples in the knowledgebase search, or anywhere online for that matter, that I can use to test. So, what's the trick
[Reply][Quote]
Bev Connor
Posts: 117
CallITB function
Posted: 28 Feb 12 12:17 PM
The CallITB function will not run in the computer's Simulator. Because there are differences between Windows on your computer vs mobile Windows on a device, there are several ITScriptNet functions which will ONLY run on a mobile device.

In your program's design view, and in the script window, double-click on the function name to highlight it. Then right-click on the highlighted function and click on "Find Definition". The definition for the function and its required parameters will display in the upper-right pane of the script window for reference.

Also confirm: In your program design view, under the Program menu, and in Support Files, make sure that the other ITB filename(s) is listed there. If not, use the Add button to manually add the the secondary program ITB file.

If you would like to receive an example program which demonstrates the CallITB function, please fill out the form and include your email address at:
http://www.z-space.com/SupportRequest.aspx
[Reply][Quote]
Bev Connor
Posts: 117
Calculator example
Posted: 28 Feb 12 12:19 PM
If you would like an example of a calculator screen, please fill out the form and include your email address at:
http://www.z-space.com/SupportRequest.aspx
[Reply][Quote]
Sal
Posts: 6
Re: CallITB function
Posted: 28 Feb 12 2:57 PM
Thank you very much. I didn't catch (or correctly interpret) the scenario of the calls not running in simulator. Is there software/app/function that is a closer to "true" simulator for the devices?

Also, thanks for the note about the Support Files. I have been adding them manually, lol.

I'll catch on sooner or later.
[Reply][Quote]
 Page 1 of 1 
 
Website (C) 2004-2008 Z-Space Technologies, Inc. All Rights Reserved.
All messages posted here are the sole responsiblity of the poster. Z-Space Technologies, Inc. is not responsible for the content of messages. Messages do not reflect the official positions or policies of Z-Space Technologies, Inc.