Windows 7 x32, Lazarus 1.0.12, fpc 2.6.2, SVN revision 42478
I have a string grid on a form, and have written procedures to edit, sort, savetocsvfile, delete, etc, both cells and the complete grid contents. I have 'Clipbrd' in the 'uses' list. I want to copy a selected cell's string to the clipboard. This should, according to the many web references, be a simple thing to do, and the codecompletion box comes up and shows a procedural title, but I've tried and failed to do it. I can select the cell's string contents using:-
StringGrid1.Cells[GridCol,GridRow] elsewhere in my coding but for instance
StringGrid1.Cells[0,3].CopyToClipboard and various variations all do not compile, with compiler complaints that I've given an ansi string when it wanted a boolean.
Could some kind genius please post me some code that DOES work?