Hello,
The user of my program will enter information into an edit box.
How can I copy this edit box.text into a Pchar variable that I can then use in the Shellexecute function?
I've tried a few ways and keep getting errors.
Thanks
Blod
ShellExecute(0, 'open', PChar(UserCommandEditBox.Text), nil, nil, SW_NORMAL);
memo1.lines.LoadFromFile(ExtractFilePath(ParamStr(0)) + 'edit.txt');
memo1.lines.SaveToFile(ExtractFilePath(ParamStr(0)) + 'edit.txt');
if OpenDialog1.Execute then
path1.text := ExtractFilepath(OpenDialog1.filename);
Users browsing this forum: No registered users and 14 guests