AppendStr

Procedure AppendStr(ByRef str: String, val: String)

This procedure appends val to str. This saves you from typing out the variable name twice.

Example:

Program
  Uses
basilisk, pure2d

Var
   myCoolString : String   
Begin
  InitBasilisk(TRUE)
  OpenScreen(640,480,32,FALSE,COB_SHOWCLOSE+COB_SHOWBORDER)
  
  myCoolString = "Turn your "
  AppendStr(myCoolString, "Cobra into ")
  AppendStr(myCoolString, "a Basilisk!")   

  Text(10,10,myCoolString)
  
  While Not ExitRequested
   Flip
   Pause
(2)
  Wend
     
End