User Tag List

Results 1 to 3 of 3

Thread: Is there a simple way to record the date/time to a single global string?

  1. #1
    Clicker Fusion 2.5
    Jocastus's Avatar
    Join Date
    Jan 2008
    Posts
    96
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Is there a simple way to record the date/time to a single global string?

    I've been setting up a saved game system which records the date when the game was saved. I know how to do this by recording the month to a global string, the day to another, and the year to another, using the Date & Time obj. to record each value as a string separately, but there must be an easier way than this.

    Isn't it possible to record all three plus the time of day to the same string in the same command? I haven't been able to find the answer to this question on the forums and any guidance would be much appreciated.

    Thank you.

  2. #2
    Clicker

    Fusion 2.5Android Export Module

    Join Date
    Jan 2007
    Posts
    281
    Mentioned
    8 Post(s)
    Tagged
    1 Thread(s)
    You can combine multiple strings together in the expression editor by just adding a + between the strings. Be aware that you have to add spaces on your own.

    EG: "Hello" + "World" would end up looking like this:

    HelloWorld

    But "Hello" + " " + "World" will look like this:

    Hello World

    I've attached an example with the date object as well. Always remember to convert numerical values to strings (if storing them in strings!) using str$(Number to Convert)
    Attached files Attached files

  3. #3
    Clicker Fusion 2.5
    Jocastus's Avatar
    Join Date
    Jan 2008
    Posts
    96
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The solution you posted was very helpful. thank you.

    There is however an issue of record the time in the fashion. "9:05 AM" will be displayed as "9:5" with no zero and no AM. Is there a way to force that zero in the minutes section or add the AM in automatically? I wasn't able to figure out either on my own this morning.

    Thanks for the clues on joining multiple strings together in any case. I knew it was possible and thought I had seen it done, but could not remember how or where.

Similar Threads

  1. [RC6] Date&Time Bug (MFA and APK)
    By Koji_Kabuto in forum Android Export Module Version 2.0
    Replies: 8
    Last Post: 4th April 2013, 12:26 PM
  2. [bug] Date&time object doesn't show date
    By qenio in forum Android Export Module Version 2.0
    Replies: 3
    Last Post: 19th March 2012, 09:49 PM
  3. Expression Help - Set single digit in global value
    By CBSection31 in forum Multimedia Fusion 2 - Technical Support
    Replies: 13
    Last Post: 23rd March 2011, 08:22 PM
  4. How to convert the Date/Time to a string?
    By RGBreality in forum Multimedia Fusion 2 - Technical Support
    Replies: 11
    Last Post: 8th June 2010, 03:37 PM
  5. Date & Time in a Text String
    By Morthian in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 8th September 2006, 03:06 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
  •