Reset/empty string ARRAY$ ?
Author
Message
twofingers
Guru
Joined: 02/06/2014
Location: GermanyPosts: 1501
Posted: 07:27pm 10 Mar 2025
matherp said
Sub test
Const slen=16
Local dirct$(255) length slen
dirct$(255)="1234567890abcdef"
dirct$(0)="ABCDEFGHIJKLMNOP"
Print dirct$(0),dirct$(255)
Local integer a%=Peek(varaddr dirct$())
Memory set byte a%,0,(Bound(dirct$(),1)+1)*(slen+1)
Print dirct$(0),dirct$(255)
End Sub
Thanks Peter! I will play with it!
Regards
Michael