I'm just starting out with Lazarus and Free Pascal, and there's a big learning curve.
I'm trying to make a CryptoQuip type puzzle solver, where I'm using a tMemo object to hold both the encrypted text, and the user's input. Like so:
Encrypted line 1
User input (space padded)
Encrypted line 2
user input (space padded)
I'm using memo.onkeypress to trap the user input (A=B), then I want to step through encrypted lines 1 and 2, looking for the first letter entered, and then place the second letter on the next line down.
Question: Is there any way to do something like:
memo.caption[characterCounter] := ch2;
Or, do I have to make my changes to a separate variable like below all the time?
var str: string:
{change str}
memo.caption := str;
Thanks.