Game Development Community

Syntax for String within a String

by Stanley D Chatman · in Torque Game Builder · 02/03/2008 (6:29 am) · 2 replies

I am trying to do the following but I cannot seem to remember the syntax for having a string within a string. I am trying to set the Command property but it is not working.


I have tried the following but I get a design time compile error:

new GuiBitmapButtonCtrl(btnHigh) {
      canSaveDynamicFields = "0";
      isContainer = "0";
      Profile = "mainmenuclickProfile";
      //HorizSizing = "right";
      //VertSizing = "bottom";
      HorizSizing = "relative";
      VertSizing = "relative";
      Position = "318 359";
      Extent = "189 43";
      MinExtent = "8 2";
      canSave = "1";
      Visible = "1";
     [b] Command = "MessagePopup(""High Score"",""Not Installed"",2000);";[/b]
      hovertime = "1000";
      groupNum = "-1";
      buttonType = "PushButton";
      useMouseEvents = "0";
      bitmap = "~/data/images/high1";
   };