[futurebasic] Re: [FB] Strings > 255 characters?

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : October 1998 : Group Archive : Group : All Groups

From: tedd@...
Date: Wed, 28 Oct 1998 12:59:29 -0500
>In a message dated 10/28/98 5:04:47 AM, jktr@... wrote:
>
>>To read the string (character by character--although I don't understand
>>why you would do this), you could use:
>>
>>  prt& = [gNewH&]               'get the pointer from the handle
>>  a = PEEK WORD(ptr&)           'get the length of the string
>>  FOR i = 2 to a                'move through the memory block
>>     b = PEEK (prt& + i)        'get the ASCII value
>>     b$ = CHR$(b)               'convert to character
>>  NEXT
>
>Don't you also need to do something with b$ before you set it again with the
>next CHR$?
>
>Mark

Mark:

Yes, but my intent was just to get a character from the memory list (so to
speak). One could use it in a "TEKEY$ = b$" to see it in an EDIT FIELD or
POKE it into another memory list to be loaded into a scrolling edit field.

tedd

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