User Tag List

Results 1 to 6 of 6

Thread: check the first left digit of Edit Object

  1. #1
    No Products Registered

    Join Date
    Aug 2007
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    check the first left digit of Edit Object

    Hi,

    A while back,I asked how I could fix an issue with Edit Object where a "0" must be place before a number less than 0. IE .3.

    The answer was to check the first left digit to see if it is a "." and place "0" in front of it.

    The problem is that I have no idea how to do this. I have used this forum to fix many glitches with my program over the years, but this issue is one few people complain about,but it drives me crazy.

    My program has grown over the years from a simple DC to AC power inverter sizing program to one that includes solar, wind, and micro hydro sizing formulas.

    Please visit my website and check it out. It is my hobby and a free download.

    www.alternatepowercalculator.com

    Thanks,

    James Campanas

    MMF2 Dev: Build 246




  2. #2
    No Products Registered

    Join Date
    Feb 2007
    Posts
    199
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: check the first left digit of Edit Object

    To check for the ".", enter the condition of "campare to general values" under special object, then in the top box put

    Left$( Edittext$( "Edit Box" ), 1 )

    set the middle bit to "equal"

    and the bottom box to

    "."

    Then the action, under the edit box select "set text", and put in the box "0" + select the expression under "retrive data from object", get text edit box.

    so you have "0" + Edittext$( "Edit Box" )

    I havent tried this i'm just going by what you said.

  3. #3
    Clicker Multimedia Fusion 2SWF Export Module

    Join Date
    Sep 2006
    Posts
    1,544
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Re: check the first left digit of Edit Object

    Yep, the command:

    Left$("string",#digits)

    will take the leftmost # of digits
    Likewise, there is a Right$() and Mid$() function

  4. #4
    No Products Registered

    Join Date
    Aug 2007
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: check the first left digit of Edit Object

    Thanks for the help!

  5. #5
    No Products Registered

    Join Date
    Aug 2007
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: check the first left digit of Edit Object

    So, I tried your advice and it works. However, the program will not allow me to finish inputting the field before it adds the "0" The cursor quickly positions itself on the far left. I type ".10" and it enters "10."

    Thanks again.

  6. #6
    Clicker Fusion 2.5 Developer

    Join Date
    Nov 2008
    Posts
    299
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: check the first left digit of Edit Object


Similar Threads

  1. Is mouse pointer to the left or right of the object?
    By King_Cool in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 31st March 2012, 12:51 PM
  2. Single Digit to Double Digit
    By Mantis in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 9th December 2010, 12:10 AM
  3. Pick Left-most object - for RGBreality
    By netninja in forum File Archive
    Replies: 1
    Last Post: 3rd July 2010, 06:00 AM
  4. Is there a way to test for the left-most object?
    By RGBreality in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 3rd July 2010, 01:22 AM
  5. Extracting a line from Rich Edit Object or Edit Ob
    By Tiles in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 8th March 2008, 05:16 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
  •