공부를 해도 잘 안보여서 도움을 청합니다.
물론 스스로 해야겠지만 그렇게 안되서요..
DB_WINDOW_ID.DataField := Trim('WINDOW_ID '); //여기서 호출을 합니다.
//DB_WINDOW_ID 이거는 TDBEdit로 부터 상속 받음.
//DataField는 property DataField: string read GetDataField write SetDataField; 이렇게 선언부에 쓰여있구요.
//그러면 이놈이 호출 됩니다.
function Trim(const S: string): string;
var
I, L: Integer;
begin
L := Length(S);
I := 1;
while (I <= L) and (S[I] <= ' ') do Inc(I);
if I > L then Result := '' else
begin
while S[L] <= ' ' do Dec(L);
Result := Copy(S, I, L - I + 1);
end;
end;
여기서 Trim함수가 뭐하는 건지 좀 알려주세요.
|