|
Matthew 님이 쓰신 글 :
: 앗,,, 죄송합니다
: 전 Datamodule에 component를 올려놓고 썻거든요,
: 그래서 그 datamodule 이름입니다.
: sqlConnJP는 sqlConnection 입니다.
:
:
:
: 김은하 님이 쓰신 글 :
: : undefined symbol 'dm'이라고 에러가 나왔는데요..^^;;
: :
: : dm 이 뭘 가르키는 건가요???
: :
: : 괜찮으시다면 주석좀 달아주세요..^^;;
: :
: :
: :
: : Matthew 님이 쓰신 글 :
: : : TParams* strParams;
: : : AnsiString str = AnsiString("Insert Into TABLE1 (FIELD1, FIELD2) Values (:one, :two)");
: : :
: : : strParams = new TParams;
: : : try{
: : : strParams->CreateParam(ftString,"one", ptInput);
: : : strParams->CreateParam(ftString, "two", ptInput);
: : :
: : : strParams->ParamByName("one")->AsString = Edit1->Text;
: : : strParams->ParamByName("two")->AsString = Edit2->Text;
: : :
: : : dm->sqlConnJP->Execute(str, strParams, NULL);
: : : }
: : : __finally{ delete strParams; }
: : :
: : : 이렇게 해 봐요.
|