Hi there everyone,
I keep getting the error "Wrong number of parameters" on this line of code
Insert('<< Name >>' , strFieldIsEmptyError, 10);
where strFieldISEmptyError := 'The field cannot be empty';
I did some snooping & I found that the compiler looks in db.pas for the definition on the string insert command assuming that I want to insert a record into a table.
I changed the line to
System.Insert('<< Name >>' , strFieldIsEmptyError, 10);
and then to
UTF8Insert('<< Name >>' , strFieldIsEmptyError, 10);
and both times I got an error saying "Variable identifier expected".
The code works in Delphi so I'd like to know the Lazarus equivalent for the Delphi string Insert procedure.
Thanks a lot