User Tag List

Results 1 to 7 of 7

Thread: Using Punctuation in Arrays

  1. #1
    Clicker Fusion 2.5

    Join Date
    May 2019
    Posts
    5
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Using Punctuation in Arrays

    I am still pretty new to this, so hopefully someone can help. I am using array files to hold questions and answers for a trivia game. The array files hold text, numbers, and spaces fine, but it seems to have a problem with punctuation.

    Has anyone experienced this and is there an easy solution?

  2. #2
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export Module
    Janette5's Avatar
    Join Date
    Dec 2014
    Location
    Western Cape, SA
    Posts
    1,080
    Mentioned
    177 Post(s)
    Tagged
    0 Thread(s)
    I just did a random test with a simple single field array and had no problem with punctuation if all the punctuation was contained in the quotes " ".

    Is there any specific punctuation you're having a problem with?

    Note that an array must be either a text array or a number array - can't be both. If you want both you need to use 2 different arrays or store the numbers as text.

  3. #3
    Clicker

    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    May 2015
    Posts
    141
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Janette5 View Post
    I just did a random test with a simple single field array and had no problem with punctuation if all the punctuation was contained in the quotes " ".

    Is there any specific punctuation you're having a problem with?

    Note that an array must be either a text array or a number array - can't be both. If you want both you need to use 2 different arrays or store the numbers as text.
    And since @vertigokeyz is new I'll just add that to convert numbers to strings and strings to numbers you can use the following: Str$( >Enter number here< ) or Val( >Enter string here< )

  4. #4
    Clicker Fusion 2.5

    Join Date
    May 2019
    Posts
    5
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Janette5 View Post
    I just did a random test with a simple single field array and had no problem with punctuation if all the punctuation was contained in the quotes " ".

    Is there any specific punctuation you're having a problem with?

    Note that an array must be either a text array or a number array - can't be both. If you want both you need to use 2 different arrays or store the numbers as text.
    The Array object holds the punctuation fine. The problem occurs when I use the app to save it to a *.arr file, then reload it. The punctuation is always missing.

  5. #5
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export Module
    Janette5's Avatar
    Join Date
    Dec 2014
    Location
    Western Cape, SA
    Posts
    1,080
    Mentioned
    177 Post(s)
    Tagged
    0 Thread(s)
    I can't recreate that - I've attached an example.

    Frame 1 writes and saves the array - one of them with a random number so that I can see that it changes.
    Frame 2 clears the array - then after 2 seconds loads the data from the saved file.

    If this doesn't help, perhaps you can post up an example .mfa of the issue you're having, the problem might be something else.
    Attached files Attached files

  6. #6
    Clicker Fusion 2.5

    Join Date
    May 2019
    Posts
    5
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Janette5 View Post
    I can't recreate that - I've attached an example.

    Frame 1 writes and saves the array - one of them with a random number so that I can see that it changes.
    Frame 2 clears the array - then after 2 seconds loads the data from the saved file.

    If this doesn't help, perhaps you can post up an example .mfa of the issue you're having, the problem might be something else.
    Here is the app I use to make by questions and answers. Let me know if it lets you save text with punctuation.
    Attached files Attached files

  7. #7
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export Module
    Janette5's Avatar
    Join Date
    Dec 2014
    Location
    Western Cape, SA
    Posts
    1,080
    Mentioned
    177 Post(s)
    Tagged
    0 Thread(s)
    You only write the content of the edit boxes to the array when the Up and Down buttons are pressed.

    If the person saves before pressing the Up or Down buttons then nothing is saved.

    If they save after pressing the Up and Down buttons then it saves correctly and will load again correctly - regardless of the content.


    You can solve this by writing to the array file every time a change has been made - Something like this:

    * Wrong 2: has been modified
    OR
    * Wrong 3: has been modified
    OR
    * Wrong 1: has been modified
    OR
    * Right: has been modified
    OR
    * Question: has been modified
    Array : Write String Edittext$( "Question" ) to (value( "Counter" ), 1)
    Array : Write String Edittext$( "Right" ) to (value( "Counter" ), 2)
    Array : Write String Edittext$( "Wrong 1" ) to (value( "Counter" ), 3)
    Array : Write String Edittext$( "Wrong 2" ) to (value( "Counter" ), 4)
    Array : Write String Edittext$( "Wrong 3" ) to (value( "Counter" ), 5)

Similar Threads

  1. Fusion transfers punctuation marks incorrectly
    By thegd in forum Fusion 2.5
    Replies: 8
    Last Post: 21st May 2020, 09:34 AM
  2. Punctuation in Text Wrapping
    By markmack in forum Fusion 2.5
    Replies: 2
    Last Post: 25th March 2014, 01:55 AM
  3. Edit Box: Ignore capitalization and punctuation?
    By brett in forum Multimedia Fusion 2 - Technical Support
    Replies: 15
    Last Post: 26th October 2013, 12:17 PM
  4. Using String Parser to check for any punctuation in a string
    By Apex in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 18th May 2012, 11:03 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
  •