User Tag List

Results 1 to 7 of 7

Thread: Global Strings

  1. #1
    No Products Registered

    Join Date
    Dec 2006
    Posts
    1,332
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Global Strings

    I'm using global strings to send lots of numbers through a sub app to the main frame and then separating the sections with the String Parser. I am using things like:

    Str$(Edit Value( "1" ))+","+Str$(Edit Value( "2" ))+","+Str$(Edit Value( "3" ))+","+Str$(Edit Value( "4" ))

    It floors every one of those values, even if I multiply everything by 1.0. Is there a way around this that still uses Global Strings, because using global values would mean I would have to set 10 to 15 values instead of using just one equation

  2. #2
    Clicker Fusion 2.5

    Join Date
    Jul 2006
    Posts
    110
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Global Strings

    I'm not completely clear. Did you try

    Str$(val(Edit Value( "1" ))*1.0)+","+Str$(val(Edit Value( "2" ))*1.0)+","+Str$(val(Edit Value( "3" ))*1.0)+","+Str$(val(Edit Value( "4" ))*1.0)

    Because that should work. I could have made a syntax error so be careful if copy/pasting that.

    Edit: Wow, I asn't even aware of the "Edit Value" expression, I always used Edittext. That's what I just tested with, but I don't see why it wouldn't work with edit value too.

  3. #3
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

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

    Re: Global Strings

    Str$(Edit Value( "1" )*1.0)+","+Str$(Edit Value( "2" )*1.0)+","+Str$(Edit Value( "3" )*1.0)+","+Str$(Edit Value( "4" )*1.0)

    Just a quick fix of something obvious I noticed. Haven't checked it properly.

  4. #4
    No Products Registered

    Join Date
    Aug 2006
    Posts
    984
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Global Strings

    Edit boxes right?

    for some reason, Edit Value("X") doesn't like decimals; try str$(val(Edittext$("1") + val(Edittext$("2")) + etc...) instead

  5. #5
    No Products Registered

    Join Date
    Dec 2006
    Posts
    1,332
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Global Strings

    Quote Originally Posted by Jam
    Str$(Edit Value( "1" )*1.0)+","+Str$(Edit Value( "2" )*1.0)+","+Str$(Edit Value( "3" )*1.0)+","+Str$(Edit Value( "4" )*1.0)

    Just a quick fix of something obvious I noticed. Haven't checked it properly.
    Quote Originally Posted by Brandon
    It floors every one of those values, even if I multiply everything by 1.0.

  6. #6
    No Products Registered

    Join Date
    Dec 2006
    Posts
    1,332
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Global Strings

    Quote Originally Posted by xyzzy
    Edit boxes right?

    for some reason, Edit Value("X") doesn't like decimals; try str$(val(Edittext$("1") + val(Edittext$("2")) + etc...) instead
    I just tried out your solution and it works great! You were right, the edit value function floors values but val(edit text) works great. Thanks.

  7. #7
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

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

    Re: Global Strings

    Sounds like a bug to me.

Similar Threads

  1. Scan Global Strings and Other strings
    By Ausomeman in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 19th May 2010, 04:01 PM
  2. Global Values and Strings
    By xXjbroXx in forum Multimedia Fusion 2 - Technical Support
    Replies: 19
    Last Post: 23rd April 2010, 12:05 AM
  3. Using Global Strings embedded in larger strings
    By Mudstick in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 12th May 2008, 01:23 PM
  4. Global Strings
    By gamefreak202 in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 30th May 2007, 09:36 PM
  5. 241_MMF2dev -Global strings refusing being global
    By Tiny in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 19th July 2006, 07:00 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
  •