G
guest2000
Unregistered / Unconfirmed
GUEST, unregistred user!
对于strlower,我用DELPHI自带的例子都access vio...错误,怎么回事?
附:
VCL Reference
StrLower function
See also Example
Converts a string to lowercase.
Unit
SysUtils
Category
string handling routines (null-terminated)
function StrLower(Str: PChar): PChar;
Description
StrLower converts Str to lowercase and returns Str.
Note: If the source string contains international characters, use AnsiStrLower instead. If the source string is a Pascal string, use LowerCase (or AnsiLowerCase) instead.
StrLower Example
uses SysUtils;
const
S: PChar = 'A fUnNy StRiNg'
begin
Canvas.TextOut(5, 10, string(StrLower(S)) + ' ' + string(StrUpper(S)));
end;
附:
VCL Reference
StrLower function
See also Example
Converts a string to lowercase.
Unit
SysUtils
Category
string handling routines (null-terminated)
function StrLower(Str: PChar): PChar;
Description
StrLower converts Str to lowercase and returns Str.
Note: If the source string contains international characters, use AnsiStrLower instead. If the source string is a Pascal string, use LowerCase (or AnsiLowerCase) instead.
StrLower Example
uses SysUtils;
const
S: PChar = 'A fUnNy StRiNg'
begin
Canvas.TextOut(5, 10, string(StrLower(S)) + ' ' + string(StrUpper(S)));
end;