Hamster-Skripte: data types

Skalare (Ordinale data types)

Hamster applies variables data type which can contain two fundamental Skalar-sorts: character strings (Strings) or ganzzahlige nummerische elements (long honorable).

Character strings can contain arbitrary consequences of ASCII-mark incl. NUL (ASCII 0). Every Zeichenlkette can become long in such a way as RAM and Swapfile of the PC admit it. Constants in mark form stand within quotation mark ("..."). If the quotation marks should be applied in character strings so they are to be given(indicated) twice. Example: "hello" "August" " ".

Ganzzahlige nummerische elements exist in 32 bit-form and can contain numbers from-2147483648 to 2147483647. Constants (in Hexadezimalform) contain a leading Prefix " 0x " (the number of "zero" and the small letter "x", e.g., 0xFF for 255).

Honorable (Ganzzahlige nummerische expressions) also serve as a place holder Bool'scher Ausdrücke and the value 0 stands for wrong and every other value of true (all inserted functions incl. naturally "true" return the number "1") for true results.

With the application the data types - if required are automatically converted - how in Basic; if a ganzzahliger numeric expression is applied in a character string, he is converted into such - and vice versa(conversely).

Arrays, chance numbers (Hashes), Collections, lists (Lists)

Within the Hamsterskripte do not there emerge these data types, in a lot of cases, however, they can be replaced with lists functions or be simulated(be shammed) at least. The corresponding functions are far ssssssssIst so, they are maintained inside and the access to them(her) takes place by a special lists manipulation. To details see lists.

Unable to open file