[futurebasic] Re: [FB] Edit Fields, Strings

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : May 1999 : Group Archive : Group : All Groups

From: Sean -G3- <mclaughlin@...>
Date: Sat, 29 May 99 19:34:01 -0400
>Now, back to the original question -- using POKE is one way to get to the
>memory  you want. It makes no sense to create a block of memory that you
>can't use -- in other words, store and retrieve stuff.
>So, next question: How do you store the string "This is text!" into a block
>of memory? Please give an example.

handle& = FN NEWHANDLE _clear (fileSize&)
pointer& = [handle&] 'Right?
PTRSTR$(pointer&) = "This is text!"


string$ = "This is text!"
handle& = FN NEWHANDLE _clear (fileSize&)
length = len(string$)

for count = 1 to length
  temp$ = right$( left$(string$,count), 1)
  ascii = asc(temp$)
  poke handle&, ascii