How to use a switch with a variable null?

Here's my current situation...

I have a form that will take the information entered in the field "LEDIR" and divide by the information contained in the field "AMMUNITION".  I get errors when the form is loaded first because the "AMMO" field is empty and a problem of "division by 0".   I tried to solve the problem with a switch, but an not sure how to create a 'null' switch box.  This is what I have... any ideas on how I can put the second case it returns a '0' for a field null of AMMUNITION?

var InvR = this.getField("LEDIR").valueAsString;
var AmmoPk = this.getField("AMMO").valueAsString;

switch (ammunition)
{
case '0 ':
Event.Value = 0;

break;

case '[what to put here?]. :

Event.Value = 0;

break;
by default:
Event.Value = (Math.floor (InvR/AmmoPk))
}

any ideas on how I can configure the second case , it returns a '0' when the AMMUNITION field is empty?

Use an empty string:

Tags: Acrobat

Similar Questions

  • How to use spell checking with magic mouse

    How to use spell checking with magic mouse

    Hello

    The mouse is not intended to be used with the spell checker.

    The mouse settings available in system preferences > mouse

    Spelling and grammar can be checked in the Edit menu in most applications.

    In addition, shortcuts keyboard.

    Command:

    And the command;

  • How to use windows update with browser firefox4

    How to use windows update with browser firefox4

    You MUST use Internet Explorer to access http://windowsupdate.microsoft.com.

  • How to use windows scan with the new canon printer is connected and the copy and printing, but can't seem to be able to use the technique of scan windows

    How to use windows scan with my new canon MX 922 printer.  It is conncected and copying and printing but can't seem to use the windows scan option, the cannon that which for me is slow thanks

    All in one, type printers (print, copy, scan) usually have a very specific set of instructions during the installation.  If not followed exactly the probability is that the scanner will not work.

    Canon: http://www.usa.canon.com/cusa/consumer

    Download and read the Setup instructions for your model, have you followed the instructions exactly, more precisely when to connect the printer / scanner during installation of the software process?

    J W Stuart: http://www.pagestart.com

  • Configure BEFSR41 V.2.1. to use as switch with ADSL ZTE Modem in Bridged mode

    I found a thread of 2009 who has a link that could help me with this configuration, but the link does not work.

    I have a Linksys BEFSR41 V.2.1 and need to set it up, so I can use it as a switch with our ZTE 831 ADSL Modem, which is in bridged Mode.

    The IP address of the BEFSR41 changed to avoid a conflict with the address IP of Modem ZTE ADSL, which is 192.168.1.1 to 192.168.2.1.

    If the PC is connected directly to the ZTE ADSL Modem, I can access the Internet and I can access the Menu of Configuration of Modem ZTE.

    If the PC is directly connected to the Linksys BEFSR41, I can access the Menu of Configuration Linksys.

    If the PC is connected to the Linksys BEFSR41, and which is connected to the ZTE ADSL Modem, I can't access the Internet, and I cannot Ping the ZTE ADSL Modem.

    Please give me a URL that indicates how the Linksys BEFSR41 should be configured to use as a switch with my ADSL Modem from ZTE in bridged Mode.

    My belief is that after I have the Linksys set up, I then plug the ZTE ADSL modem in the Linksys unit and use it to DHCP.

    DRM for your time and help! Lanny

    1. I never told of any change on the Advanced Routing page.

    2 do not connect the internet port for ZTE with this kind of configuration. You cannot use the internet port.

    3. Once you set that you can use the remaining LAN for ethernet devices ports in your local network.

  • Satellite A210 - how to use the muldimedia with other than Media Player buttons

    Hello

    is it really not possible to use media keys (Play, Pause, FF) on top of my laptop for an application other than Windows Media Player?
    Is there a reason for this? I would like to control Winamp with this button.

    It seems quite sensless to restrict access to a SINGLE application of HUNDREDS available, a then it is the multimedia player that is not used by most people.

    I have the Satellite A210 Notbook.

    Can you tell my how to control my winamp with these buttons?

    Greetings from Robert

    Hello, Robert

    Unfortunately, there is no solution at the moment. If you check this forum, you will find several very interesting discussions on the multimedia buttons and Winamp player. The fact is that some people have found the solution for older models of laptops running Windows XP Home edition. Winamp has offered the plugin must be installed.

    We now have the new situation. Your laptop is running latest Vista OS and I didn t find any plugin that can help. Problem is that your laptop is designed for Windows Vista preinstalled OS contains all the necessary plugins for Windows media player running under the operating system preinstalled.

    Is any kind of restriction. With preinstalled operating system you can do what you want and if you can find a way to change it for that. You know very well that there are hundreds of different players in the market. You can't wait for Toshiba take a time and create a plugins for each other and satisfy customers around the world.

  • How to use the product with laptop Portege R150 recovery CD?

    How to use the recovery CD product with laptop Portege R150 of Formate and reinstall the operating system?

    Mobile recovery procedure Asian does not for me but may not be very different as on mobile phones produced in Europe or the United States.

    Start your laptop and press F12 to display the boot options
    Place the recovery disc into the optical disc drive
    In the start menu, choose the CD/DVD drive and press ENTER
    The procedure of the facilities is expected to begin
    Follow the menu on the screen

    I do not know what will be shown at this stage, but it is not complicated to install the original recovery image. If you have any other questions please let me know what happens when upgraders begins. What options are displayed?

  • How to use a switch connected to the DAQ card as a source of events in a Structure of the event

    Is easy using a switch on the front panel as a source of events. However, I like to use an external switch electrician on my card for the acquisition of data (NI PCI-6229) as the event source in the Structure of the event. Can anyone help?

    Happy New year to you too!

    Attached is an example in BT 8.5

    • It uses the time-out loop (running every 100ms) to simulate your reading of the data acquisition card.
    • A shift register is used to keep track of the previous value of the switch.
    • When a change of the switch is detected, the user event is raised and the display will show the new State.

    Running the vi with activated highlight performance can be useful.

    Steve

  • How to use WVC54GCA webcam with Skype?

    I just installed the wirelesss WVC54GCA webcam. The wireless part works very well in the House, but I don't know how to use it on the internet. How can I make my default webcam for Skype? Do I need additional Windows drivers?

    WEBCAMXP there WDM drivers that allow you to use the camera WVC54GCA with Skype. They are free to download. Thanks for the link!

  • How to use Data Guard with E-Business Suite

    Hello

    I'm trying to get my head around how would you use Data Guard with E - Business Suite.

    I know that you can use only physical standby with EBS, however I have a few basic questions about specific values < SETTING > and how they are treated by a standby.

    Given that the standby and primary servers will have different host names and that generally there are < FRAME > specific values that include the hostname, where they will have to change on the standby server, both from the point of view of the battery backup Apps and within the standby database itself, I wondered how it would happen.

    Usually, EBS cloning process would change the < FRAME > target settings in the target apps stack and the target database (for example, parameters such as FND_NODES etc.).

    Q1. However I do not know how the process of cloning E - Biz would fit with a database of the day before?

    Q2. As the standby database won't even be in an open State, I don't know yet how you would apply a party any of the cloning process to a database of pending to the target?

    Q3. Even if you were able to change on the eve of the database to reflect the < FRAME > from backup server, it would mean surely it was more a physical copy of the primary database, that's why it would be more a day before.

    All a bit confusing - any clarification appreciated

    Jim

    PL see if MOS Doc 1070033.1 can help you

  • How to use a value in a variable as a table name in a query?

    I fetch a value in a variable like:

    < select application_short_name in the fnd_application l_appl_nm where application_id =: p_appl_id >

    Now, I need to use the value retrieved in the variable "l_appl_nm" as a name of partition table in the following query.

    Anyone can guide me please on this concept.

    Expected answers as soon as possible!

    Create dynamic SQL statements with your variable, and then run this SQL with the "EXECUTE IMMEDIATE" command.

    Thank you

    Lokesh

  • How to use the date with the report parameter format

    Hi all

    How to use the date format with this tag function,

    <? param@begin:P_FROM_DATE? > <? $P_FROM_DATE? >

    This date of form source of report and setting is coming as this 2012/11/01 00:00:00.

    So now I need this in MY-DD-YYYY marker. I tried like this..? param@begin:P_FROM_DATE? > <? $format - date: P_FROM_DATE; ' DD-MON-YYYY '? >

    but its giving error. Can someone pls how to convert to the format of date custom.

    Thanks and greetings
    Srikkanth.M

    Problem solved.

    REF this link

    Date Format of XML

  • How to use the import with FDM with adapter ERPI script?

    Hello

    I use FDM and ERPI 11.1.2 to load data of EBS R12 to planning 11.1.2

    Loaded from eBS data for a YEAR.

    I realized I could use an import script to manually calculate the amount with the periodic_net_cr and periodic_net_dr fields.

    But how to use this import script? Because in my import in FDM format, I do not use a file but directly the adapter, if no field "Expression".

    Thanks in advance for your help

    Fanny

    You must use the ImportAction script.

  • How to use HorizontalList filled with an array of an Image?

    Is it possible to fill a HorizontalList with an array of an Image? I am trying to create a HorizontaList of Images (thumbnails) by using a dynamic method where I put each thumbnails found in a table and then indicate the HorizontalList to use the array as the dataProvider. The result is that I just saw the ID generated for each Image.

    Since I'm controlling the content of the HorizontalList in the mx:source, I'm a bit confused how to use the itemRenderer property.

    Any help will be appreciated since Google doesn't show a lot of example/problems like mine at the moment!

    Hello

    Fair value the itemRenderer property mx.controls.Image and you should do.

  • Satellite A300 - how to use the recovery with external DVD drive disc?

    Hello

    I bought a toshiba Satellite A300 - 15 d

    FTM the tsscorp drive that is installed in the camera no longer works (does not detect any type of media what so ever). ) need to recover the laptop, so I used a USB DVD drive to boot from the restore disc, but after that the charges of recovery console it says waiting for media in the f: drive, which is the tsscorp drive although I used an external drive to load the disc.

    What files should I edit to make it to load from the drive externally and if this isn't the solution, what do I do?

    Thanks in advance

    Hey Buddy,

    Unfortunately I think that it of not possible to use the recovery with external CD/DVD drive disc. Therefore, place the internal for use the recovery disc.
    You can get a new drive to an authorized service provider.

    But if the original OS from Toshiba is installed, you can use the function of disk recovery HARD reinstall Windows as well. Go to the advanced boot menu (F8) and select Repair my computer :)

Maybe you are looking for

  • calendar events are not a to do list on my imac

    Calendar of events do not appear to make the list on the page of the calendar on my imac. He used to do this on my pc. When you enter anan event, it shows on the calendar, but you will need to enter it again if you want to appear on the to do list.

  • OMG! iPhone blocked during reset.

    My iPhone is getting worse! well, I'm resettting my 'all settings', and now it seems to weigh / stuck / frozen. Appearance of the logo with an Apple and a long bar showing the process, but it seems that the "process of rearmament" is not improving. W

  • How can I permanently disable TOUCHPAD on laptop? Windows7 64 bit.

    How to disable the touchpad on laptop permanently? I KNOW how to disable but whenever I restart computer - it It's on once AGAIN... HP pavilion dv7 6c27cl. Win 7 64 bit. I can't believe I have to download some software or readers to solve this proble

  • How can I add a keyboard shortcut to insert a signature in Outlook Express?

    ACCESS KEY QUICK TO ADD A SIGNATURE ALREADY WRITTEN IN E-MAIL WHEN YOU WORK WITH OUTLOOK EXPRESS ACCESS KEY QUICK TO ADD A SIGNATURE ALREADY WRITTEN IN E-MAIL WHEN YOU WORK WITH OUTLOOK EXPRESS

  • Receive click my hotmail in box nothing happens

    caught a virus-35 of them and a program called xp 2012 poped stateing place I had to download and buy software to solve the problem, the only thing that I could go to work existed at my set of recovery disks provided with the problem solved after a c