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

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

From: tedd <tedd@...>
Date: Fri, 28 May 1999 09:46:26 -0400
Sean -G3-

>I don't use handles. Are they the relocateable block of memory? What is
>the advantage of using them over pointers?
>
>I'd assume they're used like this:
>handle& = FN NEWHANDLE(size&)
>
>Judging from your program, it looks like they're manipulated with POKE
>and PEEK:
>POKE current&, char%      'add character

For a description of handles and pointers, please review the Handbook -
pages 369-378 and BASIC 101 -- An Introduction to the memory manager by
Ross - pages 45-55. These give more than I could offer.

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.

tedd


___________________________________________________________________
<mailto:tedd@...>	               http://sperling.com/