User Tag List

Results 1 to 9 of 9

Thread: How do I include " as text in an expression?

  1. #1
    No Products Registered

    Join Date
    Oct 2006
    Posts
    183
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How do I include " as text in an expression?

    Hello everyone. I know that " " is used to separate text from other variables in the expression editor but I have a small problem.

    I'm trying to have my application generate a vbs script. At one point, I need the Rich Edit Object to 'Set Text' as:

    Set objOU = GetObject("LDAP://OU=Customer Contacts,dc=example,dc=domain,dc=co,dc=uk")

    The problem is, I need to include those " in the code. The expression editor thinks I'm closing and opening text strings? What I want to happen is the Rich Edit Object to display the whole line, above, exactly as it is; speech marks and everything

    Is there any way that I can exempt that from happening, like in PHP you can use a \" to make the " do something different?

    Thanks

  2. #2
    No Products Registered

    Join Date
    Jul 2006
    Location
    Umeå, Sweden
    Posts
    1,090
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How do I include " as text in an expression?

    put " twice...

    "Set objOU = GetObject(""LDAP://OU=Customer Contacts,dc=example,dc=domain,dc=co,dc=uk"")"

  3. #3
    No Products Registered

    Join Date
    Oct 2006
    Posts
    183
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How do I include " as text in an expression?

    I tried that before but it didn't seem to like it. It was probably me missing a " somewhere, hehe. I'll try again thanks

  4. #4
    Clicker Multimedia Fusion 2
    Greg's Avatar
    Join Date
    Dec 2006
    Location
    Poland
    Posts
    315
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How do I include " as text in an expression?

    I would try to create a string object and set it alterable string to " . Then you could replace " in the expression by: Str$("String").

  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 do I include " as text in an expression?

    Writing "" in the expression editor works well, there's no need of using a string object. If you want to put this text in a edit box:

    I say "Hello"

    using the expression editor, you'll have to write:

    "I say ""Hello"""


  6. #6
    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 do I include " as text in an expression?

    Quote Originally Posted by Pasiunia
    I would try to create a string object and set it alterable string to " . Then you could replace " in the expression by: Str$("String").
    wastes CPU and RAM for idleing purposes

  7. #7
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export ModuleUnicode Add-on
    LIJI's Avatar
    Join Date
    Jun 2006
    Location
    Israel
    Posts
    1,175
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How do I include " as text in an expression?

    The full guide to the " sign:

    A string will be printed as typed when it's surrounded by two "s:

    "Hello" -> Hello

    You may add an actual " sign in the text by typing "" instead of it:

    "LIJI said ""It is Jeff's fault""." -> LIJI said "It is Jeff's fault".

    """This is a text""" -> "This is a text"

    You can also add a singal " this way:

    """" -> "

    Or in actual use

    "Text A "+""""+" Text B" -> Text A " Text B

    I hope it helps.

  8. #8
    Clicker Multimedia Fusion 2
    SEELE's Avatar
    Join Date
    Jul 2007
    Location
    Terra australis incognito
    Posts
    1,916
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How do I include " as text in an expression?

    wow... that had confused me for ages... cheers :cool:

  9. #9
    No Products Registered

    Join Date
    Oct 2006
    Posts
    183
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How do I include " as text in an expression?

    He he thanks for this. I had used the " before as discussed but I must have missed one out as it wasn't working for me before - It is now

    Thanks anyway though

Similar Threads

  1. Can't resize the text of an string with expression. What should I do?
    By NaitorStudios in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 9th September 2013, 06:08 PM
  2. The difference between text in expression editor and text in strings?
    By RobertRule in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 21st July 2013, 10:13 PM
  3. Expression problem for random text
    By Drekko in forum The Games Factory 2 - Technical Support
    Replies: 1
    Last Post: 17th November 2011, 04:51 PM
  4. How do I include quotation marks in a text string?
    By RGBreality in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 12th August 2011, 05:10 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
  •