对,写错了uses ClipBrd; procedure StrToClipbrd(StrValue: string);varA: array[0..255] of char;beginStrPCopy(A, StrValue);Clipboard.SetTextBuf(A);end;function GetStrFromClipbrd : string;beginif Clipboard.HasFormat(CF_TEXT) thenresult := Clipboard.AsTextelsebeginShowMessage('There is no text in the Clipboard!');result := '';end;end;
clipboards;
然后自己写代码.实现
然后自己写代码
procedure StrToClipbrd(StrValue: string);varA: array[0..255] of char;beginStrPCopy(A, StrValue);Clipboard.SetTextBuf(A);end;function GetStrFromClipbrd : string;beginif Clipboard.HasFormat(CF_TEXT) thenresult := Clipboard.AsTextelsebeginShowMessage('There is no text in the Clipboard!');result := '';end;end;