Enter an equation into a textbox and it will automatically calculate an answer

Hi All,
I have created two textboxes.
What I would like to do is after entering an equation, e.g.
"(9-5)*30 + 1", into the textbox 1,
textbox 2 will automatically gives me the answer "121".
I have no idea which function can give me an int 121 from a
string "(9-5)*30 + 1" or I have to build one by myself.
Are there any build-in functions in AIR could help?
If I have to build one by myself, are there any sample code
for me to reference??
Many Thanks!!

Your choices are:
* Parse the expression and calculate it yourself, which is
probably hard.
* Google for a library that aleady does it
* Pass the expression string to the browser via
ExternalInterface and evaluate it using javascript's eval()
function.
Tracy

Similar Messages

  • I have an iphone 4s that is having display issues. If I turn the phone on, it vibrates to acknowledge it successfully turned on but the screen stays solid black. I can plug the phone into my computer and itunes will recognize the phone as well.

    I have an iphone 4s that is having display issues. If I turn the phone on, it vibrates to acknowledge it successfully turned on but the screen stays solid black. I can plug the phone into my computer and itunes will recognize the phone as well. However, itunes can not do anything with the phone because the phone is locked and I can not unlock the phone because the screen is black.
    >CURVEBALL!!!<
    The screen does work though! Through trial and error along side a little troubleshooting, I was able to figure out that the screen will cut on after the phone dies completely. The phone has to die completely with no battery power left. Then if I plug the phone into a charge and wait a while for it to charge, the phone will turn on like nothing was ever even wrong with it. I charge the phone up to like 30% and turn it off then bam the phone turns on but the screen is solid black again.
    I am currently in the process of waiting for the phone to die and when I turn the phone back on I am going to completely remove the auto-lock and lock code off of the phone for the time being.
    Any other suggestions? Please help!

    Sounds like the device was dropped at some point and damaged as a result.
    Take it to Apple for evaluation and a replacement.

  • How do I add silence to the beginning of a track? Before the 10.0.3 update, you could drag the region further into the timeline and it would automatically create silence before the track plays when you export it. What am I missing?

    Before the 10.0.3 update, you could drag the region further into the timeline and it would automatically create silence before the track plays when you export it. What am I missing? How do I i do this in the current version of Garage band?

    what is the problem? Can't you drag the audio region to the right, or is the silence at the beginning of the track missing?
    You could mark the measures you want to export by the Cycle region. Then any beginning silence will be included.

  • Auto populate Infopath 2013 fields after entering a data into a textbox.

    Firstly can I please say I am sorry to be revisiting this but I just can sort it out!!
    I have 3 fields in a SharePoint 2013 list, Code, Section, SubSection, after some guidance I am trying to use rules to populate Section/SubSection when a Code is entered.  I am getting the Data for the three Fields from an XML file. The form can see
    the XML data fine. Here's the BUT.. I cant seem to get the quering correct to autofil the other two fields.
    I promise this is the last time I shall ask for help on this!
    TIA
    Jon

    Thanks Cameron.
    No that’s not what I need, not Cascading Drop Downs, I want TextBox’s to be populated.
    I have 3 fields, Code, Section, and SubSection, when a user enters a code into the first box, a rule queries the list, I(I have XML or SharePoint List) to populate the Section/SubSection with
    the data relating to the Code.
    So far I have a rule that on FormLoad when the Code field changes it queries the XML list for the info.  The problem I have it I can’t get the query correct.
    Thanks
    Jon

  • I use a Win7 PC with iCloud and Outlook 2010 for syncing my calendar and contacts. I can enter data in my Outlook Calendar and it will appear in iCloud, but data entered in iCloud does not sync back to Outlook.  ICloud syncs to my iphone fine both ways.

    I use Win 7 PC with iCloud and Outlook 2010 for syncing my Contacts and Calendar.  They have stopped syncing...mostly.
    Now, appointments I enter on my local Outlook (iCloud) Calendar goes up to iCloud fine.  But, data I enter on iCloud directly does not come down to my local Outlook iCloud Calendar.  If I reboot the computer, the iCloud data shows up.
    Also, Contacts I try to enter on my Outlook (iCloud) Contacts goes up to iCloud fine, but does not show up in my local iCloud Contacts.
    All syncing works with my iPhone.
    I have signed out of iCloud on PC.  I have stopped syncing and re-started.  No change.
    I have an .aplzod folder for iCloud.  I have a separate Earthlink.net.pst email account in Outlook and a me.com.pst Outlook email account (which I don't actually use) listed under Data Files.
    Any help would be appreciated.  Curious that Outlook will upload to iCloud but not receive downloads unless I reboot.  However, rebooting does not download the missing Contacts.
    Jim Robbins

    Hi Jim!
    You've started off with some good troubleshooting steps, so let's see if we can take this a little further and figure out what the issue is with your iCloud contacts and calendars. I have two articles here that will help you troubleshoot this issue a little further, but the troubleshooting steps for both articles are exactly the same, so I will lay those out for you here:
    Note: When using iCloud Control Panel 2.0 and later, iCloud Calendar event descriptions in Outlook 2010 do not support text formatting (bold, italics, or underline), HTML, images, or attachments. The contextual (right-click) menu has also been disabled.
    If you are having trouble with a PC (with Outlook 2007 or 2010) and iCloud Calendar, try each of these steps, testing after each to see if the issue is resolved:
    Verify that you are using a Windows configuration that is supported by iCloud. For more information, see iCloud system requirements.
    When enabling Calendars in the iCloud Control Panel, part of the setup process is to copy your Calendars data from the default Outlook ".pst" file to iCloud, and then remove the Calendars from the ".pst" file by placing them in the Deleted Items folder in Outlook. The Calendars data is then stored in the iCloud data set within Outlook so that changes can be pushed to and from Outlook by iCloud. Be sure you are looking for your data within the iCloud dataset within Outlook after enabling Calendars in the iCloud Control Panel. The deleted files can be seen by viewing Deleted Items within your Outlook Folder List. This is not iCloud removing your data; iCloud simply copies your data into the iCloud data set and then removes the local Calendars data by placing it in the Deleted Items folder.
    Make sure your computer is online. Attempt to view www.apple.com and iCloud.com. If you can't connect to the Internet, your iCloud calendars and events will not update in Outlook. Click here for more information about troubleshooting your Internet connection.
    Open a secure website to test if you are online as is necessary for iCloud Calendar. This also tests if the ports 80 and 443 are accessible. Outlook requires port 443 access to iCloud in order to push and pull updates to and from the iCloud Calendar servers.
    Verify that your iCloud member name is entered into the iCloud Control Panel pane. See iCloud Setup for more information about setting up iCloud on Windows.
    Completely close and reopen the iCloud Control Panel.
    If you recently made changes in Outlook and they are not moving to your other devices or vice-versa, click the Refresh button in Outlook.
    Turn iCloud Calendar off and back on:
    Close Outlook.
    Open the Windows Control Panel:
    In Windows 8, move the pointer to the upper-right corner of the screen to show the Charms bar, click the Search charm, and then click the iCloud Control Panel on the left.
    In Windows 7 and Vista, choose Start menu > All Programs > iCloud > iCloud.
    Remove the checkmark in the checkbox next to Mail, Contacts, Calendars & Tasks, and click Apply. Wait a few seconds, then replace the checkmark, and click Apply.
    Open Outlook and test to see if the issue has been resolved.
    Ensure the iCloud Outlook Add-in is active within Outlook.
    Outlook 2010:
    Open Outlook 2010.
    Click the File menu.
    Click Options in the left panel of the Outlook window.
    Click Add-Ins in the left panel of the Outlook Options window.
    Look at the list of add-ins beneath "Active Application Add-Ins" and verify that the "iCloud Outlook Add-in" is listed.
    For Outlook 2007, follow these steps to verify the iCloud Outlook Add-in is active
    Open Outlook 2007.
    From the Tools menu, choose Trust Center.
    Select Add-ins from the left column.
    Look at the list of add-ins beneath "Active Application Add-Ins" and verify that the "iCloud Outlook Add-in" is listed.
    For additional information about managing Add-ins with Microsoft Outlook, see this Microsoft support document.
    Restart your computer. This may sound simple, but it does reinitialize your network and application settings and can frequently resolve issues.
    iCloud: Troubleshooting iCloud Contacts
    http://support.apple.com/kb/ts3998
    iCloud: Troubleshooting iCloud Calendar
    http://support.apple.com/kb/ts3999
    Thanks for using the Apple Support Communities!
    Cheers,
    Braden

  • I want to bookmark all of the open tabs into a folder and have FF automatically assign H + todays date as the name of the folder

    I am in the habit of leaving all of the pages open the whole day, whether I use them for 10 seconds or 10 hours. At the end of the day I will bookmark them all into a folder and use a name like "H March 23 2014" with H meaning home. If using the computer in the office, the bookmark would be "O March 23, 2014". Is there anyway to make FF do this automatically? One step nicer, if it would store each folder within a folder that I have designated for daily work documentation.

    Hey there,
    Try [https://addons.mozilla.org/en-US/firefox/addon/bookmark-current-tab-set/ Bookmark Current Tab Set], it might be what you're after!
    Hope this helps!
    Curtis

  • When printing to pdf i copy and try to paste text into the textbox and it freezes up. What can i do to fix this?

    I have tried to look at reasons as to why this happens but i cannot find anything. If i type it in manually it works perfectly fine. The copying and pasting of text into the name of the file freezes and crashes the window i am in

    Hey jb42312436,
    Please let me know what type of file are you trying to print to PDF.
    Is Adobe Acrobat installed on your system? What version?
    Try doing the same with some other file and check if the same thing happens.
    Let me know.
    Regards,
    Anubha

  • Enter Text in Multi Line TextBox and New Lines

    Hi Guys,
    I have a form that takes a users input and saves to an access
    database.
    The data is in turn drawn by a recordset and displayed on an
    ASP page using VBS.
    The form that takes the info has 1 textbox thats multi line
    and I want it to be a simple input box except when the user adds a
    line break by hitting return I want this to be reflected when the
    record is drawn to the detais page..
    Just now no matter how many times I hit return key when
    typing in the multi line text box and add paragraphs or simple
    sentances they all come out with no line breaks on the page when
    shown???
    Do I have to make my own rich text box editor? or is there
    something Im missing?
    Thanks in advance for any thoughts.
    Tag

    Tag2007 wrote:
    > Thanks Im on the site now and dont see the lite
    version?? Do you have a link to it please..
    InterAKT was acquired by Adobe in September and most of its
    products
    were discontinued. The full version of KTML is now part of
    the
    Kollection suite.
    The solution to your problem is very simple, though. I'm
    sorry I can't
    give you the exact coding, because I haven't used ASP for
    many years.
    However, all that you need to do is to create a function that
    searches a
    string for new line characters and replaces them with
    <br> (or <br />
    for XHTML).
    PHP has a built-in function (nl2br()) to do this, but in ASP
    you need to
    search for the new line character code.
    David Powers, Adobe Community Expert
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • My wireless mouse and KB are in discovery mode, but I can't get past the "enter password" screen because my Mouse and KB will not work...batteries have been changed.

    My Wireless KB and mouse are stuck in discovery mode, but I can't get past the "user password" screen because It won't allow me to enter characters.

    Should work if you enter the code and hit the return key.  Here is a step by step article.
    http://support.apple.com/kb/HT1809?viewlocale=en_US
    Captfred

  • I ripped audio cd into media player and they will not playo

    hp pavilion g6 notebook  x16-96072  windows 7 home premium . after ripping audio cd's into media player i can't play
    any music

    Hi
    Please find the link given below might help you to resolve your issue.
    Troubleshoot problems in Windows Media Player
    Let us know how it goes!
    "I work for HP."
    ****Click the (purple thumbs up icon in the lower right corner of a post) to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    Regards
    Manjunath

  • My ipod touch is frozen and holding the unlock button and home button down still doesn't work. I even plugged it into my computer and it will not show up.

    Help!

    Try the holding of the power button and home button (10secounds) while the device is connected to a computer. Sometimes this seems to work. The device might also be stuck in some kind of recovery loop. There is a program which can fix this called TinyUmbrella. Do a google search for it. The software is free and once downloaded there is a button that once your device is connected says kick from recovery
    Syther101

  • HT1918 I had a balance on my account and hav snot billed anything to my cc for about 6 month and the CC on file was stolen. In the mean time I have purchased ya new computer and just tried to long into my accout and it will not let me update my billing in

    They want the security code off my stolen card before they will allow me to change my account info ANY IDEAS?

    iTunes Store Support
    http://www.apple.com/emea/support/itunes/contact.html

  • I recently purchased an ipad2 and it will automatically turn off about every 3 hours or so and it is very hard to turn it back on... Any advice?

    can anyone help?

    Did you purchase new or used? Is it fully charged when this happens?
    Not normal. Take it to an Apple Store for evaluation.
    Make a Genius Bar Reservation
    http://www.apple.com/retail/geniusbar/
     Cheers, Tom

  • My iphone 5(not S) screen popped out, the whole screen and digitizer, will they replace this if i go to the apple store?

    my iphone 5 screen has been cracked but i recently dropped my phone again and the whole screenpopped out. its still attached by a black cord but now the whole screen is just black and i cant use it at all. will the apple store replace my screen or will i have to get a whole new iphone?

    You may need to buy an entirely new iPhone. Before when the screen was just cracked you could have got an out of warranty replacement for a fee but now the screen has popped out and will most likely be classed as catastrophic damage.
    At the link http://www.apple.com/support/iphone/service/faq/ it says:
    What type of damages are not covered by my warranty?
    Apple's Limited Warranty for iPhone excludes coverage for damage resulting from accident, disassembly, unauthorized service and unauthorized modifications. Please review the warranty for further details.
    An iPhone that is ineligible for warranty service may be eligible for Out-of-Warranty (OOW) Service. For example, an iPhone that has failed due to damage or liquid damage is ineligible for warranty service but eligible for OOW service. However, certain damage is ineligible for OOW service, including catastrophic damage, such as the device separating into multiple pieces, and inoperability caused by unauthorized modifications. Please see Apple's Repair Terms And Conditions for further details. Refer to this article to check if the Liquid Contact indicator on your product has been triggered.
    If your iPhone is not eligible for warranty service, you may wish to contact your carrier for other options.
    So all you can do is take it into a Store and they will make the decision.

  • How do I enter a variable into an equation?

    How do I enter a variable into an equation?

    Jacob,
    Spreadsheets don't use equations, so the usual nomenclature can be confusing.
    When you enter something into a spreadsheet cell, it is either a Literal Value (Constant), or an Expression, preceded by an equal sign, that tells the spreadsheet to display something. Every Cell Reference in the Expression is a Variable. The equal sign in this case does not signify an equality, it just signals the spreadsheet that you want it to do something, defined by the expression that follows.
    Here's an equation: A1 = B1 + C1 + 10, where B1 and C1 are variables and 10 is a constant.
    To figure out what the value of A1 is, you write an expression in cell A1. That Expression would be: =B1 + C1 + 10. The operation that is performed by the spreadsheet is that it looks at B1 and C1, adds whatever it sees there and then adds the constant 10, and displays the result in A1.
    It can get very complex. Expressions can contain Functions that catch the Time or generate a random number, or round a value, etc. Just remember that anything you see in a cell can be changed, so that content, that cell address, is a variable
    Jerry

Maybe you are looking for

  • Frozen image with video out to HDMI

    I have my iMac connected via an HDMI adaptor through a 10' HDMI cable into a Hi Def TV. It was working well but suddenly froze with an image that happened to be a photo from iPhoto. That image remains whenever the cable is connected into the TV. When

  • [Newbie] Script output

    Can anyone help me out to get the output on two rows in excel. for /f "skip=3" %i in ('qfarm /load') do quser /server:%i | find /i /c "Active" && echo %i >> "c:\Temp\server.csv" I can get them on row A and B. Is there also away to get the total amoun

  • Multiple photos in one page for posting in FB

    Does anybody know how to put four pics together, save them and be able to upload them in FB? I know that this can be done under PRINT, but I can only go as far as putting them together. I dont know how to save the end document, and be able to upload

  • Export as PDF in Preview

    I like to save a PDF in Thumbnail format in Preview; however after upgrading to Yosemite, this no longer works. It does save the file to the desktop; but when I open it, it displays Content Only instead of Thumbnail view.

  • Can we install Android in NOKIA 701

    Nokia N9 can run Android in multiboot option.. can we run NOKIA 701 with android  Solved! Go to Solution.