String must be changed to the number only

Hello

I'm doing a converter. I have two boxes. We got in, and the other is dynamic. I have a button between the two who will do a conversion of (the area of entry) centimetres in inches (dynamic box). Instance name of the button is 'Edit', the box of the instance name is "centimeters" and the dynamic one is "inches".

However, currently the entrance we accept only characters in the string 'letters '. And it only accepts letters of the name of the instance "centimeters". I want that it only accepts numbers so that the button between the two will be dipslay the number of converts in the dynamics of the box.

Here is my current code:

change.addEventListener (MouseEvent.CLICK, conversion);

function converting(e:MouseEvent) {}

var convert: Number = (number (centim.text * 2.56));

convert = Math.round (convert)

inches. Text = String (convert);

}

I need a line after the 'function', I guess to tell him to accept a number as the instance name letters. But I don't know how to do it!

Could someone offer suggestions on how to?

Thank you all for your time and your consideration.

Best regards

Cagri Kasap

1 embed your fonts

2. not to type any text in the input text field

3 use the restrict property to limit the input textfield text to numbers.

4. use:

change.addEventListener (MouseEvent.CLICK, conversion);

function converting(e:MouseEvent) {}

var convert: Number = number (centim.text) * 2.56;

convert = Math.round (convert)

inches. Text = String (convert);

}

centimeters. Restrict = "0-9";

Tags: Adobe Animate

Similar Questions

  • in acrobat pro DC, I can't re - save files after making changes and the number appear in what looks like Arabic?

    in acrobat pro DC, I can't re - save files after making changes and the number appear in what looks like Arabic?, I run repair and rebooted the computer several times now...

    Ann Chinsang wrote:

    I can not re - save files

    Why? What is the procedure that you follow? What is the error message?

    Ann Chinsang wrote:

    number appear in what looks like the Arabic

    -What are you talking about? When you try to change the numbers in my document; it evolves in Arabic numerals

  • How do you change/edit the number of cell phone in Windows Live Hotmail?

    I followed the pages guests who claim will allow you to change your mobile phone.  But when you get to the next page, there is nothing when allows you to edit or change the number. The cottage the old phone number (which I have not used in 5 years)... I'm trying to get the calendar to send appointments on my phone.

    Hello

    I just did this to remove an old phone number - Hotmail - right superior Options - more options.
    On the left view - Hotmail - Options under Account - Details of the account - the account - security management
    Info Security - manage - delete phone number and follow the rest of the guests.

    This is what worked for me, however if you have any problems then use Support of Hotmail.

    ---------------------------------------------------------------------------------------------------------------

    Answers is a peer group supported and unfortunately has no real influence on Hotmail.

    HotMail has its own Forums, so you can ask your questions there.

    Windows Live Solution Center - HotMail - HotMail Forums Solutions
    http://windowslivehelp.com/

    Hotmail - Forums
    http://windowslivehelp.com/forums.aspx?ProductID=1

    Hotmail - Solutions
    http://windowslivehelp.com/solutions.aspx?ProductID=1

    How to contact Windows Live Hotmail Support
    http://email.about.com/od/hotmailtips/Qt/et_hotmail_supp.htm

    Windows Live Hotmail Top issues and Support information
    http://support.Microsoft.com/kb/316659/en-us

    Error message "your account has been locked" when trying to connect
    http://windowslivehelp.com/thread.aspx?ThreadId=77be7d82-a0e9-49c7-b46d-040ec654a9e2

    Compromised account - access unauthorized account - how to recover your account
    http://windowslivehelp.com/solution.aspx?SolutionID=6ea0c7b3-1473-4176-b03f-145b951dcb41

    Hotmail hacked? Take these steps
    http://blogs.msdn.com/b/securitytipstalk/archive/2010/07/07/Hotmail-hacked-take-these-steps.aspx

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="" -="" mark="" twain="" said="" it="">

  • size of the string must adapt automatically to the size of the text

    Hello

    Whenever I passed the text to the channel indicator, my size of the string must match the size of the text automatically. Is this possible?

    GerdW wrote:

    OK: you will find a calc function the size of the text somewhere in the range of photo features. Use the result of this function to set the properties of your string indicator... (Don't have LV on hand to search for this function.)

    Totally agree with Gerd.

    What has mentioned, it is something like this:

    Andrey.

  • Message: Shared spreadsheets cannot be changed when the number is offline now

    I just updated to IOS10. I can open all other spreadsheets in numbers (shared and non-shared) bar one when I get the above message.

    Locations - iCloud drive

    Hello babciax2,

    Thank you for using communities of Apple Support.

    I see that you are not abel to open a Numbers spreadsheet and get the error in quotes. This sounds like this document is defined for collaboration. Collaboration for numbers is explained in the following support article: collaboration for Pages, Numbers and Keynote

    This section describes what you see:

    Change when you are offline

    On Mac and iOS, you can only open a shared document when your device is connected to the Internet. If you are not connected, or if you switch to offline mode, all working, the application displays an alert asking if you want to work on a copy of the document offline.

    Best regards.

  • Watch is now no paired phone. The watch displays now wrong password, which must be changed on the phone.  However, given that the watch is more matched with the phone, I can't the available option to change the password.  Help please!

    I have a watch that has become not matched with the iPhone with it's Setup.  It is locked with a password and the dial of the watch indicates "Wrong password" and I have to open the App to Apple Watch on my phone to re - activate the entry of access code and try again.  However, the iphone has stated that on the phone became not paired with the watch, so I can't do anything, there is no option to change the password and I can't pair the watch with the phone because it is locked.  This is my boss's phone... Help, please!

    If you have forgotten the password for your Apple Watch - Apple...

    < edited by hosts >

  • When the motherboard must be changed does the PC cabinet to be change simultaneouly must

    My two PCs have stop working on currently due to heavy rain and moisture in my office, when we consult with our close computer repairer, we were advised to change the motherboard and motherboard should be changed, we were advised to change the furniture as you please give the direction that we use the HCL EC 2 pc.

    When the motherboard is changed you change case as well?

    No, it won't be may not be not necessary.

    See the following video (which last about 3 minutes) that explains the operation: -.

    http://www.ComputerActive.co.UK/CA/PC-help/2039758/build-PC-step

    If my comments have helped please vote too useful.

    Thank you.

  • Change the number of virtual processors on VM

    Hello

    I have ESXi 4.0 update1 and a number of virtual machines on it.

    As you may know, there is a warning saying "Change in the number of virtual processors after installation of operating system guest can make your virtual machine unstable." When you open the properties of the VM to change hardware settings.

    However, I have a few virtual machines that I change the number of viftual UC sometimes (increase and decrease) and haven't noticed any problems.

    All my VMs are Microsoft Windows 2003/2008/XPs.

    Someone know that changing the number of virtual processors has no negative impact or not?

    I appreciate your help.

    Depending on the configuration of your operating system, this can be harmful. WIndows not the component of ACPI, which must always be configured as uni or multi processor (windows detects usually it and change automatically, I really don't know the trigger to make it not happen, but sometimes it isn't). Also for example, Linux kernel can be compiled without SMP (multi processor support), in order to have several processors can cause the virtual machine to run slowly.

    You may not notice any changes in your virtual machines, and I really think that you are not running on SMP issues. But if you want to check in the Device Manager, you can check if your ACPI is United or multi processor and change it properly.

    Marcelo Soares

    VMWare Certified Professional 310/410

    Master virtualization technology

    Globant Argentina

    Review the allocation of points for "useful" or "right" answers.

  • Need to obtain equal records the number of days of the month.

    Dear all

    My table and its data is given:

    Table name: Transaction_Master

    Trn_Num Trn_Dte
    1January 2, 2014
    2January 3, 2014
    3February 15, 2014
    4December 29, 2013
    5December 30, 2013
    and so on

    Now, I wish that my query must return equal records the number of days for each month of Trn_Dte. Be careful, I don't have Trn_Num column in my result. Its cities here only for explanation.

    It should, for example, records 31 to January 31 to December and 28 February.

    I tried following query but it passes loop and my db session gets hang.

    With T as

    (

    Select Distinct (Trn_Dte, 'Month') To_Char Trn_Mon, To_Number (To_Char (Last_Day (Trn_Dte), 'DD')) Tot_Day

    Of Transaction_Master

    Where Trn_Dte between parameter_1 and PARAMETRE_2

    )

    Select Distinct Trn_Mon, level

    T

    Connect by level < = Tot_Day

    Order By Trn_Mon, level

    Could you give me a solution for this case?

    Another solution for your exact needs. Try this and let me know in case of any problems. Because I changed the connection by the clause double itself.

    SELECT DISTINCT TRUNC (Trn_Dte, 'MY') + (lvl - 1)

    OF Transaction_Master aa (SELECT LEVEL lvl

    OF the double

    CONNECT BY LEVEL<= 31)="">

    WHERE Trn_Dte<= to_date('15-feb-2014','dd-mon-yyyy')="" ---="" add="">

    AND TO_CHAR(Trn_Dte,'MON') = TO_CHAR (TRUNC(Trn_Dte,'MON') + (lvl-1), 'MY');

  • To the number of decimal places control user input

    Hey everybody,

    I am all new to LabVIEW and just learn how it works. I was wondering if there was a way to allow user input to change the number of decimal places (the output of my function is infinitely extensible).

    I tried, but it did not work:

    Using a digital input, I appended a string with "%" + '[INPUT]' + 'f' with the number of function concat strings and string functions. I used the resulting string as the formatting string in the value format function.

    This doesn't quite work. The output should be something like "28.274", but instead, it displays "283f. Anyone know why? Is there a better way to do it?

    In addition, attach a picture of the front panel and diagram of block for clarity.

    (Yes, it's homework, but the assignment does not include allowing the user to adjust the number of decimal places, it's just something I would like to add.)

    Get rid of the number 2 for the width of your decimal string number.  It requires a space before a number to a number.  %. 6F is not equal to % .6f.  The string format don't quite understand the first format string.

    (PS.  It helps if you attach your VI.  In this way we can play with what you have rather than trying to recreate it from scratch.)

  • I have purchased the Cisco license... But nothing is the change of the ASA

    Hello guys

    I bought the new ASA 5505 10 - for unlimited user upgrade, so my basic license previous was 3 restricted DMZ VLAN, and when I bought the details include a Vlan 20 - trunk.   and now there is no change with the Vlan. only 10 host transformed into unlimited,

    I think I lost $ 300, so what is the problem please it is urgent HELP HELP

    Even if you do not have Smartnet, a license question, ask the CTA since this is a new purchase.

    I suspect that the order was coded wrrong or the license has been generated incorrectly.

    Your license email must indicate the characteristics of the expected product.

  • Yahoo AutoComplete component - can not increase the number of lines

    I'm trying to manipulate Yahoo autoComplete component, found in:
    http://developer.Yahoo.com/Flash/Astra-Flash/AutoComplete/examples.html

    My one thing I want to change is the number of lines, similar to the CS3 list item. By default, they display a number of lines of 5. I've tried to set rowCount = 10, but I see that 5 rows when the AutoComplete component displays items.

    Create an instance of AutoComplete
    var autoComplete:AutoComplete = new AutoComplete();

    give him data
    autoComplete.dataProvider = new DataProvider (myData);
    autoComplete.rowCount = 10;

    The drop-down menu that appears when you type in the AutoComplete field always displays only 5, not 10, objects. Does anyone have experience with this component, or feeling up to their example FLA and see how I need to be wrongly trying to adjust this property?

    Thanks for any help!

    I found a solution that worked for me.

    You can set the number of lines after the immediate creation of an instance of this component - it should be set when a user interacts with it. I found myself by setting the number of lines on a CHANGE listener. Don't l; t look like the logical place to put it, but it worked fine for my needs in the long run.

  • Proxy settings to change since the update for Firefox 4

    I had just recently updated for Firefox 4 and as soon as it finished downloading I tested and that he saw that he changed my 127.0.0.1 proxy settings. I changed it to "Not of Proxy", but when I close and return back on the Internet, the Proxy settings are changed to the number of localhost. I used AVG and Malewarebytes scan my computer from infection and found none. Anyone know what is happening?

    Some extensions like the Assistant Microsoft .NET Framework installed worldwide and cannot be disabled and not uninstalled in Firefox.

    To disable the extensions to solve your problem?

    If this does not work in mode without failure, then disable all extensions and then try to find out who is the cause by allowing both the problem reappears.

    • Choose "Disable all add-ons" on issues to troubleshoot Firefox in Safe Mode to set window to disable all extensions.
    • Close and restart Firefox after each change through "file > exit ' (Mac: ' Firefox > leave";) Linux: "file > exit ')
  • I just bought 14 items and must have missed something because the order only gives me downloads for Windows and I'm on Mac. I have the serial number for Windows download. How to move to Mac downloads?

    I just bought 14 items and must have missed something because the order only gives me downloads for Windows and I'm on Mac. I have the serial number for Windows download. How to move to Mac downloads?

    Hello

    Please see a product for another language or version of trading platform

    Kind regards

    Sheena

  • Display the icon change the number of columns

    I'm sure it must be a way to change the number of columns in the display icon, not the space between columns, not the size of the icons, but the number of columns, for example, that dumpster has 4 columns and I want to see those hidden on the right I have to use the scroll bar, I want to do I want to see ONLY for columns of the filling finder window?

    Thank you very much

    Roger

    "BTW that seems to only happen when I consult with ANY ' arrange by" or "sort by"!

Maybe you are looking for