Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

" in strings

AnatolyAnatoly Mod
edited June 2016 in Suggestions Posts: 848

Here's the problem: print ( " He said: " Goodbay, princess! " and went to dark forest " )

Usuall fix in languages: print ( " He said: \" Goodbay, princess! \" and went to dark forest " )
When you add the \ before the string letters

=> Problem: Not avaibel in Codea

**Point of topic: ** Add this to Codea

EDIT

print ( " He said: " .. ' " ' .. " Goodbay, princess! " .. ' " ' .. " and went to dark forest " )
It's a bit confusing..

" String " .. ' " ' .. " String " => returns => String " String
Tagged:

Comments

  • IgnatzIgnatz Mod
    Posts: 5,396

    Use single quotes ' '

    Or else [[ ]]

  • AnatolyAnatoly Mod
    Posts: 848

    But that's the problem! You can't mix those together in one string!

  • dave1707dave1707 Mod
    Posts: 7,807

    @TokOut Using the \" works for me in Codea.

    print ( " He said: \" Goodbay, princess! \" and went to dark forest " )
    
  • AnatolyAnatoly Mod
    Posts: 848

    -_- for me for a reason not. What about this: ? Another error apearing:

    attempt to call a nil value
    stack traceback:
    

    Nothing to see :(

  • dave1707dave1707 Mod
    Posts: 7,807

    Everything you need is there. You're attempting to call a nil value.

  • AnatolyAnatoly Mod
    Posts: 848

    That happens when you reload a working project.

  • dave1707dave1707 Mod
    Posts: 7,807

    It doesn't matter when you do it, you're attempting to call a nil value. Look at what you're calling and figure out why it's nil at that time. You're doing something wrong, so look at your code and fix it.

  • AnatolyAnatoly Mod
    Posts: 848

    No, I mean it really happened when reloading the project I have posted in collection.

  • dave1707dave1707 Mod
    edited June 2016 Posts: 7,807

    Why do you post incomplete information and expect someone to help you. Some program is giving you an error when you reload it, and it's some project you posted in your collection. I believe you that it's happening, but without having any code to look at or try, all I can say is you have to find the error and fix it yourself.

Sign In or Register to comment.