User Tag List

Results 1 to 4 of 4

Thread: Setting edit text to an equation.

  1. #1
    Clicker Multimedia Fusion 2SWF Export Module

    Join Date
    May 2011
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Setting edit text to an equation.

    Code:
    Edit Value( "watts" )/1000
    So I need to know what to do with this to make it set this to the text in a textbox. I've tried using quotes and I've looked at the help files but I cannot figure it out...

  2. #2
    Clicker Fusion 2.5 Developer

    Join Date
    Jul 2008
    Location
    UK
    Posts
    1,393
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)

    Re: Setting edit text to an equation.

    Str$( Val( Edittext$( "watts" ) )/1000.0 )

    Using "Edit Value" is something I recommend you avoid, as it only returns an integer, not a float.

    Adding the ".0" to "1000" ensures that the end result is not rounded down to a whole number. If you do want it as an integer, it's better to use round() anyway.

  3. #3
    Clicker Multimedia Fusion 2SWF Export Module

    Join Date
    May 2011
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Setting edit text to an equation.

    Thank you.

  4. #4
    Clicker Multimedia Fusion 2 Developer

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

    Re: Setting edit text to an equation.

    The key thing was Str$(), which converts a number to text.

Similar Threads

  1. bug report edit text box
    By copperbob in forum SWF/Flash Export Module Version 2.0
    Replies: 1
    Last Post: 18th January 2012, 07:04 AM
  2. list object, setting text
    By richardh in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 28th February 2010, 01:58 AM
  3. Get text: Rich Edit 2.0
    By Dynamite in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 26th July 2009, 01:17 PM
  4. Removing Text from Edit Box?
    By Jesse in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 16th July 2008, 06:04 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
  •