User Tag List

Results 1 to 5 of 5

Thread: Decimals retrieved from Edit Boxes

  1. #1
    No Products Registered

    Join Date
    Mar 2008
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Decimals retrieved from Edit Boxes

    When EditText$ = "1.67" , EditValue returns 1, and Val(EditText$) returns 1.67. Why is it so?

  2. #2
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jun 2006
    Location
    England
    Posts
    3,527
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: Decimals retrieved from Edit Boxes

    Because EditValue() doesn't look past the first non-numeric character (e.g. a full stop).
    .:::.Joshtek.:::.

  3. #3
    Clicker Multimedia Fusion 2
    SEELE's Avatar
    Join Date
    Jul 2007
    Location
    Terra australis incognito
    Posts
    1,916
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Decimals retrieved from Edit Boxes

    However if you use the syntax Val(Edittext$( "edit text" ))

    Then it will retrieve the decimal values aswell.

  4. #4
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Decimals retrieved from Edit Boxes

    He already knew this- it was in his first post.

  5. #5
    Clicker Multimedia Fusion 2
    SEELE's Avatar
    Join Date
    Jul 2007
    Location
    Terra australis incognito
    Posts
    1,916
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Decimals retrieved from Edit Boxes

    Now i just feel Silly :grin:

Similar Threads

  1. Compare two edit boxes
    By loglady in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 31st May 2013, 09:38 PM
  2. Change order of edit boxes
    By LaraSoft in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 24th December 2007, 09:05 PM
  3. MMF too small edit boxes
    By Tiles in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 14th December 2007, 11:14 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •