Apostrophe's in arrays?
vining
Posts: 4,368
How do you go about getting apostrophe's in an array to work?
The above doesn't seem to work, although they work fine when not in the array.
'Master Suite Windows', //69 //5 'Gallery Stairs Windows', //70 //6 'Back Bedroom Windows', //71 //7 'Front Bedroom Windows', //72 //8 'Corner Bedroom Windows', //73 //9 "'Kid',39,'s Playrm Wndws'", //74 //10 "'Nanny',39,'s Room Wndws'", //75 //11 'Spa/Exercise Windows', //76 //12 '3rdFL Bedrooms Windows', //77 //13 'Laundry Water Bug', //78 //14 'AC Pits Water Level', //79 //15 '**' //80 //16 }
The above doesn't seem to work, although they work fine when not in the array.
0
Comments
This yields "Welcome to Jen's Room"
"'Kid''s Playrm Wndws'", //74 //10
You can use back to back apostrophes to tell the system to print and or compile a single apostrophe.
Hope this helps!
Dan
This is exactly what I do. Was about to suggest it, but ya beat me to it!
Sorry, didn't read far enough..
I think you can put two apostrophes in the place of one and the complier knows that to mean "i want an apostrophe here please' Or you can just declare the variable and populate it in the DEFINE_START by using the dec 39 or hex $27.
--John