127 of 323
ZBasic System Library 117 ZX Microcontroller Family GetPersistent Type Subroutine Invocation GetPersistent(addr, var, count) Parameter Method Type Description addr ByVal int16 The address in Persistent Memory from which to read. var ByRef any type The variable in which to place the data read. count ByVal int8/16 The number of bytes to read. Discussion This routine reads one or more bytes from Persistent Memory and places them in RAM beginning at the location of the specified variable. Note that if a number of bytes is specified that is larger than the given variable, adjacent memory will be overwritten, possibly with detrimental results. The DataAddress property is useful to get the address of a Persistent Memory data item. Example Dim pvar(1 to 10) as PersistentByte Dim var(1 to 10) as Byte Call GetPersistent(pvar.DataAddress, var, SizeOf(pvar)) Compatibility This routine is not available in BasicX compatibility mode. See Also PutPersistent