Hello, problem that has caused me to lose a handful of hair.
Here is my code:
Temp2$="" :' I am *Trying* to make NewWord EMPTY
for Kount = 1 to 6
Temp2$ = Temp2 + mid$(OldWord,Kount,1)
next Kount
In my case, Temp2$ never initializes to nothing. Its string
length is -28672! I tried printing Temp2$ to the screen and it
prints one of the characters from Character #33 to Character #90
(On an Ascii table).
Is Temp2$ a reserved word by Powerbasic? I tried using other
variables, but I end up with the same contents whenever I go to
"build" my new word. Any suggestions? I tried using Watch on
debug, and the puzzler is Temp2$ stays empty right up until the
line after Temp2$ = ""
I have no idea where it is getting
its data- I don't have files open.
Thanks for any input. Yes, I will post the code, but I would
rather wait until requested to do so. It is currectly 92 lines,
not too bad yet, but not finished either.
Robert
------------------

Here is my code:
Temp2$="" :' I am *Trying* to make NewWord EMPTY
for Kount = 1 to 6
Temp2$ = Temp2 + mid$(OldWord,Kount,1)
next Kount
In my case, Temp2$ never initializes to nothing. Its string
length is -28672! I tried printing Temp2$ to the screen and it
prints one of the characters from Character #33 to Character #90
(On an Ascii table).
Is Temp2$ a reserved word by Powerbasic? I tried using other
variables, but I end up with the same contents whenever I go to
"build" my new word. Any suggestions? I tried using Watch on
debug, and the puzzler is Temp2$ stays empty right up until the
line after Temp2$ = ""

its data- I don't have files open.
Thanks for any input. Yes, I will post the code, but I would
rather wait until requested to do so. It is currectly 92 lines,
not too bad yet, but not finished either.
Robert
------------------
Comment