User Tag List

Results 1 to 6 of 6

Thread: Decimal place in Edit box?

  1. #1
    Clicker Fusion 2.5

    Join Date
    Oct 2007
    Posts
    25
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Decimal place in Edit box?

    I've been trying to add $,(eg,$3.50 + $2.40, using edit boxes but can't find a way to use decimal place and make it work.
    Is it possible?

  2. #2
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleSWF Export ModuleUnicode Add-on
    Looki's Avatar
    Join Date
    Aug 2006
    Location
    Karlsruhe, Germany
    Posts
    3,741
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)

    Re: Decimal place in Edit box?

    Sorry, but I don't know what you're talking about.
    Do you want to get the input as decimal number?

    Try Val(Edit Text("Edit Box"))

  3. #3
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    Darlington, UK
    Posts
    3,298
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Decimal place in Edit box?

    Yeah, the edit-box's built in "get value" doesn't work for fractional numbers, you have to use val(edit text("edit box")).

  4. #4
    Clicker Fusion 2.5

    Join Date
    Oct 2007
    Posts
    25
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Decimal place in Edit box?

    Tried that first but keep getting "please enter an alpanumeric expression", which I can't(don't know)how to get around. So I use
    Edit box 3/set text/ Str$(Edit Value( "Edit" )+Edit Value( "Edit 2" )), the only way I can get some result.
    edit box1= 2.70
    edit box2= 2.20
    edit box3= 4 ....(I need edit box3 to read 4.90)

  5. #5
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleSWF Export ModuleUnicode Add-on
    Looki's Avatar
    Join Date
    Aug 2006
    Location
    Karlsruhe, Germany
    Posts
    3,741
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)

    Re: Decimal place in Edit box?

    Str$(Val(Edit Text("Edit Box"))+Val(Edit Text("Edit Box 2")))

  6. #6
    Clicker Fusion 2.5

    Join Date
    Oct 2007
    Posts
    25
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Decimal place in Edit box?

    Yeh got it. I didn't think about using str & val in the expression editor. Good lesson. Thank you all very much.Cheers.

Similar Threads

  1. Counter only shows one decimal place on Android
    By PunchyBog in forum Android Export Module Version 2.0
    Replies: 2
    Last Post: 13th August 2013, 07:19 AM
  2. moltiplied two decimal value from edit box, is possible?
    By daniele in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 17th December 2011, 10:25 PM
  3. Sub App not in place
    By StingRay in forum iOS Export Module Version 2.0
    Replies: 1
    Last Post: 2nd November 2011, 02:49 PM

Posting Permissions

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