Dtrings

You can create a String in the Strings Collection in the same way as a Variable in its collection by pressing the Add button or creating a SetString function from the S Menu. Once a string has been created you can Edit it in the same way too by pressing the Edit button. A string is simply plain text that can be typed by you or Loaded from or Saved to a File. If you highlight a String line in the Collections Window you will find Load and Save by pressing the Menu button. You can also Load and Save strings using items on the Insert menu when Editing a String.

When creating items in Czimps you must start their names with a letter and may then use digits letters or _. There is a special type of String called a Maths String its name has a % prefix, and a special type of Variable called a Handle which has a # prefix.

In any dialog when text is required you can incorporate the text from a predefined string by preceding the strings name with $. In a similar way you can do calculations and insert the resulting number by using ${}. e.g. suppose you have a Variable called price=20 and a string called item="Eggs" you could set a string s to "2 $item cost ${2*price} pence", this would result in s="2 Eggs cost 40 pence" when the string is expanded by Czimps builtin Parser. There are various other Parser functions which you will meet later, they all start with a $. If you need a $ in a String type $$.

When editing a Maths String if you do not want it to be automatically evaluated by Maxima end the text with a blank line.

Maths Strings and the string Properties of some Functions have their text coloured to highlight their syntax.

BACK