월요일, 8월 10, 2009

Delphi Try~Exception, StringReplace

꼭 잊어버려... -_-;;;
그래서 적어 둔다.


// *** Delphi ***
// Try ~ Exception
try
except
on E : Exception do begin
ShowMessage( E.ClassName + ' error raised, with message : ' + E.Message );
end;

// String Replace
Result := StringReplace( strText, 'old','new', [rfReplaceAll] );


-----
Cheers,
June

댓글 없음:

댓글 쓰기