Documentation

The character strings

It is important to know how to use the character strings because they usually plays a part in numerous situations.
For example, in the following script lines, a loop allows to load the projects :
D:/cartoon3.tvp, D:/cartoon4.tvp, ... ... ... D:/cartoon15.tvp, D:/cartoon16.tvp.


For number=3 to 16
NameOfTheFile="D:/cartoon"number'.tvp'
tv_loadproject NameOfTheFile
End


As shown above, you will have to use simple quotation marks ('...') or double quotation marks (''...'') in order to differentiate variables from character strings.

In the example above :
number and NameOfTheFile are variables
D:/cartoon and .tvp are character strings

The variable NameOfTheFile receive the concatenation of D:/cartoon, number and .tvp
In other words, the character strings d:/cartoon and .tvp, the variable number have been joined end to end in order to create the variable NameOfTheFile.

It is possible to use the Concat instruction to join end to end character strings and/or variables. The following lines have the same effect :
NameOfTheFile=number'.jpg'
NameOfTheFile=Concat(number,.jpg)


If you need to use simple quotation marks ('...') or double quotation marks (''...'') in your character strings, you must surround them with the other quotation marks at your disposal, as shown in the example below :

Print ' My prefered animation program is " TVP Animation " ' // will surround the name of the software with double quotation marks.
Print " My prefered animation program is ' TVP Animation ' " // will surround the name of the software with single quotation marks.