[futurebasic] Strings > 255 Solved!

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

From: tedd@...
Date: Fri, 30 Oct 1998 10:12:14 -0500
>Try it again and see :),
>
>Paul

Paul and everyone else:

I successfully solved my problem and offer the code to anyone interested.
This list is a great thing for bouncing ideas and correcting misconceptions.

You see, I had already created a memory block which contained byte data.
From which I extracted data for operation in my program (that should have
given me a clue as to how to do what I posted - which was how to store a
long string).

The problem that I faced was to directly store ASCII characters in memory.
I didn't readily make the connection that I should store the ASCII values
as byte data in memory. If one looks at the consecutive values given by
bytes, which is 0 to 127 and then -128 to -1, it's not readily apparent
that one can use it for 0 to 255 values.

In any event, I solved the problem. The code I developed stores a long
string (i.e., > 255 in length) in memory. The first two bytes is the length
of the string and the remaining portion is composed of translatable ASCII
characters.

Let me know if anyone want's it (as usual it's done in typical "tedd
documentation" style).

:-)

Many thanks to this list.

tedd





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