User Tag List

Results 1 to 5 of 5

Thread: Negative values in a List, and Global Values

  1. #1
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module

    Join Date
    Jul 2006
    Location
    USA
    Posts
    658
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Negative values in a List, and Global Values

    I want to use a List to store relative Font sizes... from -10 to +10. How can I load these values into the Global Values?

    I know how to load a list of positive values (with no - or + sign) but how would I load a negative value into the Global Values?

    I've tried using Get Value of ListLine, but when it reads the -3, it returns as 0 instead of -3 (I suppose since - and + are considered string characters instead of integers.)

    thanks.

  2. #2
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module
    Sphax's Avatar
    Join Date
    Jun 2006
    Location
    Paris, France
    Posts
    4,454
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Negative values in a List, and Global Values

    I don't understand the problem...
    If you want to convert a string into an integer, simply use Val() function...

  3. #3
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module

    Join Date
    Jul 2006
    Location
    USA
    Posts
    658
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Negative values in a List, and Global Values

    I think I found my problem! Here's what I was doing:

    My list has 3 lines:
    +1
    0
    -1

    When ListSelectionChanged => Set Counter to 3+Val(CurrentLine)

    This would work correctly for the Negative numbers, but not the Positive numbers. When I removed the + sign in the List, everything worked fine!

  4. #4
    No Products Registered

    Join Date
    Aug 2006
    Location
    Westcountry, UK
    Posts
    862
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Negative values in a List, and Global Values

    Stupid Computers

  5. #5
    No Products Registered

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

    Re: Negative values in a List, and Global Values

    Ya I know! Who made these dumb machines anyways!?! We do better without them!

Similar Threads

  1. Global Values & Alterable Values with same names
    By Gustav in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 7th November 2012, 06:15 PM
  2. how do i use Values and global values?
    By gamebuilder in forum The Games Factory 2 - Technical Support
    Replies: 2
    Last Post: 24th April 2012, 12:54 AM
  3. Negative fixed values
    By Nifflas in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 2nd September 2010, 09:12 AM
  4. Global Values
    By bkfitww in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 8th October 2006, 06:53 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
  •