|
PeekString | ||
String$ = PeekString(Address, Length) | ||
Parameters: Address = The Address in memory where this data should be stored Length = The Number of characters you wish to read from memory. (length 0, reads a null terminated string) |
||
Returns: String$ = The string that was read |
||
The PeekString functions will read a string of characters directly from memory. Setting the Length parameter to zero will make PeekString read a null terminated string. FACTS: * You can peek any memory location. * Care must be taken when reading directly from memory. Attempting to access memory that is not part of your program will most likely cause your program to crash. * Strings are limited to a maximun length of 32768 characters (bytes) * Also See Pointer Mini Tutorial: This example creates a bank, grabs this banks memory address (the address of the first byte in memory), pokes various test values and strings into memory, then finally reads them back.
This example would output.
|
Related Info: | PeekByte | PeekFloat | PeekInt | PeekWord | PokeByte | PokeFloat | PokeInt | PokeString | PokeWord : |
|
|||||||||||||||||||||||||||||||||||||||
(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com |