|
허재연 님이 쓰신 글 :
: : DataBase AliasName 목록을 읽어와서 CoboBox나 ListBox등에 뿌려주고 싶습니다.
:
: 도움말 그대로
: TStringList *MyStringList = new TStringList();
:
: try
: {
: Session1->GetAliasNames(MyStringList);
: // fill a list box with alias names for the user to select from
: for (int I = 0; I < MyStringList->Count; I++)
: ListBox1->Items->Add(MyStringList->Strings[I]);
: }
: __finally
: {
: delete MyStringList;
: }
:
:
: 추가
: CoboBox나 ListBox에 하려면
: Session1->GetAliasNames(MyStringList);
: 을
: Session1->GetAliasNames(ListBox1->Items); 또는
: Session1->GetAliasNames(ComboBox1->Items);
: 하시면 됩니다.
: 이렇게 하시면 for문은 지워야 겠죠
:
: 지금은 빌더가 없어 실험은 못해 봤습니다...
해결했습니다....감사합니다.
|