274 of 307
ZBasic System Library 264 ZX Microcontroller Family StrType Type Function returning Byte Invocation StrType(str) Parameter Method Type Description str ByVal String The string variable whose string type is desired. Discussion This function returns a value indicating the nature of a string variable. The values returned have the meaning shown in the table below. Type Meaning &H00 The string is a standard statically allocated string or a bounded string. The value returned by StrAddress() is a RAM address and can be read using RamPeek()or MemCopy (). &He0 The string is dynamically allocated. The value returned by StrAddress() is a RAM address (which may be zero) and can be read using RamPeek() or MemCopy (). &He2 The string is in Program Memory. The value returned by StrAddress() is a Program Memory address and can be read using GetEEPROM(). &He3 The string is in Persistent Memory. The value returned by StrAddress() is a Persistent Memory address and can be read using GetPersistent(). &He4 The string is in RAM. The value returned by StrAddress() is a RAM address (which may be zero) and can be read using RamPeek() or MemCopy(). &He5 The string is in RAM and is limited to 1 or 2 characters. The value returned by StrAddress()is a RAM address and can be read using RamPeek() or MemCopy(). &He6 The string is in RAM. The value returned by StrAddress()is a RAM address and can be read using RamPeek() or MemCopy(). This special string type is used for native-mode code to pass a bounded string or fixed-length string to a subroutine/function ByVal. &Hff The string is a statically allocated fixed-length string. The value returned by StrAddress() is a RAM address and the data can be read using RamPeek() or MemCopy (). See the section on strings in the ZBasic Reference Manual for more details about dynamically vs. statically allocated strings. Compatibility This function is not available in BasicX compatibility mode. See Also StrAddress