User Tag List

Results 1 to 6 of 6

Thread: How to write the NULL ASCII character?

  1. #1
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module

    Join Date
    Sep 2006
    Location
    Spain
    Posts
    170
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to write the NULL ASCII character?

    I need to write the NULL ASCII character (hex 00) into the expression editor. Anybody knows how can I do this?

    Thank you!

  2. #2
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jul 2006
    Posts
    2,023
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to write the NULL ASCII character?

    use text blitter get character from ascii code ?

  3. #3
    Clickteam Clickteam
    Anders's Avatar
    Join Date
    Jun 2006
    Location
    Denmark, Århus
    Posts
    3,456
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)

    Re: How to write the NULL ASCII character?

    The ASCII NULL character is what ends all lines. Even if you succeed doing it (String Parser 2 can do it) then at runtime everything after the NULL character will be gone since all MMF2 string operations stops when it finds one.
    *edit*
    After a little thought it might just disappear completely since if you do:
    "Mystring" + NULL character + "other text"
    It will just append "other text" after the first NULL it finds which is just after "Mystring" and not the NULL char you inserted.
    And that gives you the string:
    "Mystringother text"

  4. #4
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    Darlington, UK
    Posts
    3,298
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to write the NULL ASCII character?

    A better question might be: "What do you want it for?"

  5. #5
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module

    Join Date
    Sep 2006
    Location
    Spain
    Posts
    170
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to write the NULL ASCII character?

    I need to send some ASCII commands to a remote machine using a communications extension. Some of this commands include the NULL char, and the expression editor just ignores my attempts to introduce this character. I've tried some extensions to get this character (string parser, formatted string object, binary object) but I've failed.

  6. #6
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    Darlington, UK
    Posts
    3,298
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How to write the NULL ASCII character?

    That is because, as we have said, you can't include the NULL char in a string (because it's used as the end-of-string marker). If your extension can send binary data directly, you should use that.

    EDIT: I noticed that you've posted in the EasyCom thread asking for a "send NULL" action. That could work.

Similar Threads

  1. Character ASCII value?
    By ChrisBurrows in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 9th November 2011, 02:47 PM
  2. ASCII Character Object
    By Jaffob in forum Released Extensions
    Replies: 2
    Last Post: 24th August 2011, 03:37 PM
  3. Null Object - Lack of error catching?
    By knpmaster in forum SWF/Flash Export Module Version 2.0
    Replies: 2
    Last Post: 9th April 2010, 08:32 AM
  4. Binary and null :(
    By Tomek in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 15th February 2010, 12:13 PM
  5. SQLite3 null value issue
    By jdv in forum File Archive
    Replies: 1
    Last Post: 15th May 2009, 03:40 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
  •