On Apr 24, 2007, at 10:33 PM, Brian Heibert wrote: > I am re-creating BH-Basic > > I got this in the interpreter > My problem is that if you type > PRINT the text you want to print > Currently it also displays the NOTEALERT from the NOTEALERT command > below > Any help appreciated. Oh and I did one thing myself I searched > the archives to come up with the code to interpret commands below 1) Assuming this FN is called with a valid edit field id, the keyword $ obviously does not have the value you expect. Recommend basic debugging techniques to uncover the value stored in keyword$ by the ucase$/left$ commands. Either use the debugger or insert strategic print statements in the code to display the values. 2) Noticed un-dimmed vars are being used. While they probably don't contribute to this problem they do muddy the water . 3) Go through your code LINE BY LINE and: a) verify the logic of what you are doing b) write down what the variable contents should be c) make sure you understand what every element of every instruction does. Not knowing (or not learning) invites erroneous results when more code is written based on a weak understanding. Until step #3 is learned and practiced, a programmer is reliant on others for even basic code. Brian S.