User Tag List

Results 1 to 4 of 4

Thread: Storing a counter value on a string

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module

    Join Date
    Jun 2006
    Posts
    173
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Storing a counter value on a string

    Hope you can help me with that..

    I need to set the value of a string as the value of a counter, but the expression editor doesn't allow me to do that, telling me "please enter an alphanumeric expression".

    Is there a way to do that? Do I need an extension?!?

    Thank you!!

  2. #2
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Storing a counter value on a string

    You can convert values to strings by using Str$(value goes here), or the other way round by using Val(string goes here).

    So you would set the string to Str$(value("Counter")), or similar.

  3. #3
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jun 2006
    Location
    England
    Posts
    3,546
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: Storing a counter value on a string

    1 + 1 = 2 [number]
    str$(1 + 1) = "2" [string]

    "1" + "1" = "11" [string]
    val("1" + "1") = 11 [number]
    .:::.Joshtek.:::.

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module

    Join Date
    Jun 2006
    Posts
    173
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Storing a counter value on a string

    Great!
    Thank you guys!!

Similar Threads

  1. Storing infomation in ini++...
    By Earl in forum iOS Export Module Version 2.0
    Replies: 2
    Last Post: 6th August 2012, 01:53 AM
  2. Putting a counter value into a string?
    By Outcast in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 18th May 2012, 06:54 PM
  3. Counter to string
    By JDWB in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 26th December 2011, 12:18 AM
  4. cloned active object string storing
    By bubba_damage in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 7th May 2011, 03:03 AM
  5. counter value to string (tricky)
    By the_raven in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 3rd April 2009, 09:00 AM

Posting Permissions

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