POKE statement
Purpose: Writes a string to a specified memory location.
Syntax: POKE(Destination%, Source$, Count%) Parameters:
|
' ===================================== ' Example using PEEK and POKE in BCX ' to quickly copy one array to another, ' which is MUCH faster than using a ' FOR-NEXT loop to move each element ' ===================================== DIM a![10000] DIM b![10000] FOR integer i = 0 TO 9999 a![i] = i + 0.1 NEXT POKE(b,PEEK$(a,SIZEOF(a)),SIZEOF(a)) FOR integer i = 0 TO 9999 PRINT b![i] ' now contains the same data as in A![] NEXT