|
스트링에다 넣어 잘 하려고 했느데 잘 되어 이렇게 구현 했습니다.
이상 없이 잘 됩니다...감사합니다.
AnsiString Command;
int aFind;
Query1->Close();
Query1->SQL->Clear();
Query1->SQL->Add("select state from users");
Query1->SQL->Add("where userid = '" + Command + "'");
Query1->Open();
aFind = StrToInt(Query1->FieldByName("state")->AsString);
그런데...위 문장을 프로그램으로 몇번 실행시킨후 가만히 두었더니 2-3분후 에러가
납니다.
EDatabaseError with message 'Query1:Cannot perform this
operation on an open dataset', Process stopped. Use Step or Run to continue.
이런 에러가 납니다.
지금 5분정도 테스트 해봤는데, 또 에러가 납니다..제거 머 잘 못한 거라두 있나요?
그럼..즐프하세요
|