Jose, Eu não utiliz muito essas funções da cQuickTab. Na sminhas aplicações prefiro cuidar da parte de conexões e utilização dos Handles para me certificar de como e onde estão conectados.
Acredito que o QOM_CreateComplete não seja o local ideal para chamar essa função mesmo, mas também pode ser que a Classe use a variável m_hSqlDQL ao invés da m_hSqlDML, como eu sugeri no e-mail anterior. Aconselho você a colocar um Breakpoint na função Populate da classe e verificar qual o Handle utilizado, e depois é só usá-lo na função SqlSetResultSet. Quanto a performance na inicialização da tela, como você falou que possui várias Tabs e cada uma com uma Child Table, você poderia apenas popular na criação a Child Table da Tab Ativa, e depois chamar a função Populate de cada uma na mensagem TABSM_TabActivateStart que é enviada ao clicar numa TabFrame. Assim você evitará de fará 1 select na criação ao invés de 10, e os outros serão feitos sob a demanda do usuário. Espero tê-lo ajudado Sds Fabiano Reis WestLB - Banco Europeu Systems Development tel: 55 + 11 + 5504-9833 fax: 55 + 11 + 5504-9933 "Jose Carlos de Godoi e Silva" <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 14/02/2003 16:31 Please respond to sqlwin To: [EMAIL PROTECTED] cc: Subject: Re: [sqlwin] Handle de uma cquickTable Olá Fabiano, Tentei utilizar as funções / vairáveis da classe mas o erro persiste. No caso abaixo, retorna um erro de sql handle invalido. !!CB!! 173 On QOM_CreateComplete Call SalSendMsg(tblANALISE_PRELIMINAR8, SAM_RowSetContext, 0, 0) ! Call TabAprGeal.tblANALISE_PRELIMINAR8._AquireSqlHandle( hSqlQTab ) ! Call SqlSetResultSet( hSqlQTab, TRUE ) No caso da variável m_hSqlDML, também acontece a mesma coisa. !!CB!! 173 On QOM_CreateComplete Call SalSendMsg(tblANALISE_PRELIMINAR8, SAM_RowSetContext, 0, 0) Call SqlSetResultSet( TabAprGeal.tblANALISE_PRELIMINAR8.m_hSqlDML, TRUE ) Talvez não esteja chamando a função no evento correto. O pior é que a documentação sobre estas classes é muito sucinta , o que ajuda pouco. Obrigado pela ajuda e, se tiver mais, acho bom! Sabe, tem uma outro problema que acontece. O sistema leva quase 2 minutos para inicializar.!!! Utilizo o objeto cQuicTab com 10 tabs e uma quicktable em cada uma. Os dados não são muitos, talvez umas 200 linhas por tabela, em média. Qualquer dica para melhorar o desempenho ficarei muito agradecido. Abraços, Godoi. [EMAIL PROTECTED]@virtualand.net em 14/02/2003 11:09:27 Favor responder para [EMAIL PROTECTED] Enviado Por: [EMAIL PROTECTED] Para: [EMAIL PROTECTED] cc: Assunto: Re: [sqlwin] Handle de uma cquickTable Jose Carlos, Dei uma olhada na classe cQuickTable e ela possui duas funções que podem resolver seu problema: 1) AquireSqlHandle: A função te retorna (num Receive Sql Handle) o valor da variável m_hSqlDML, que é a que deve ser usada pela classe para a execução dos Comandos SQL, caso esta seja diferente de hWndNULL 2) ReleaseSqlHandle: A função seta o valor da variável m_hSqlDML com o valor que você passa como parâmetro, caso m_hSqlDML = hWndNULL Espero ter ajudado Fabiano Reis WestLB - Banco Europeu Systems Development tel: 55 + 11 + 5504-9833 fax: 55 + 11 + 5504-9933 "Jose Carlos de Godoi e Silva" <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 14/02/2003 09:31 Please respond to sqlwin To: [EMAIL PROTECTED] cc: Subject: [sqlwin] Handle de uma cquickTable Pessoal , Bom dia! Alguém saberia me dizer como descobrir o handle de uma quickTable? É que estou tendo o erro 163 - result set not active _ e, para utilizar a função SqlSetResultSet ( hSql, TRUE ) presiso saber este handle. Já procurei em suas funções membro e não encontrei nada. Grato, José Carlos de Godoi. _________________________________________________________________________ Advertência: Esta mensagem não implica a assunção de obrigações em nome da Itaipu Binacional, cujo Estatuto dispõe, em seu Artigo 15: A ITAIPU somente poderá assumir obrigações ou constituir procuradores mediante a assinatura conjunta dos dois Diretores Gerais. (D.O.U. de 20.02.86, págs. 2073/6) =============================================Lista de Centura SQLWindows Administrador : [EMAIL PROTECTED] [ http://www.centuraexplorer.com ] Para sair desta lista mande mensagem para: [EMAIL PROTECTED] sem nada no Subject e com o comando a seguir no corpo da msg: "unsubscribe sqlwin" (sem as aspas) ============================================= Diese Nachricht ist vertraulich. Sie ist ausschliesslich fuer den im Adressfeld ausgewiesenen Adressaten bestimmt. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir um eine kurze Nachricht. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Da wir nicht die Echtheit oder Vollstaendigkeit der in dieser Nachricht enthaltenen Informationen garantieren koennen, schliessen wir die rechtliche Verbindlichkeit der vorstehenden Erklaerungen und Aeusserungen aus. Wir verweisen in diesem Zusammenhang auch auf die fuer die Bank geltenden Regelungen ueber die Verbindlichkeit von Willenserklaerungen mit verpflichtendem Inhalt, die in den bankueblichen Unterschriftenverzeichnissen bekannt gemacht werden. This message is confidential and may be privileged. It is intended solely for the named addressee. If you are not the intended recipient please inform us. Any unauthorised dissemination, distribution or copying hereof is prohibited. As we cannot guarantee the genuineness or completeness of the information contained in this message, the statements set forth above are not legally binding. In connection therewith, we also refer to the governing regulations of WestLB concerning signatory authority published in the standard bank signature lists with regard to the legally binding effect of statements made with the intent to obligate WestLB. ======================= Lista de Centura SQLWindows Administrador : [EMAIL PROTECTED] [ http://www.centuraexplorer.com ] Para sair desta lista mande mensagem para: [EMAIL PROTECTED] sem nada no Subject e com o comando a seguir no corpo da msg: "unsubscribe sqlwin" (sem as aspas) ======================= =============================================Lista de Centura SQLWindows Administrador : [EMAIL PROTECTED] [ http://www.centuraexplorer.com ] Para sair desta lista mande mensagem para: [EMAIL PROTECTED] sem nada no Subject e com o comando a seguir no corpo da msg: "unsubscribe sqlwin" (sem as aspas) ============================================= Diese Nachricht ist vertraulich. Sie ist ausschliesslich fuer den im Adressfeld ausgewiesenen Adressaten bestimmt. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir um eine kurze Nachricht. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Da wir nicht die Echtheit oder Vollstaendigkeit der in dieser Nachricht enthaltenen Informationen garantieren koennen, schliessen wir die rechtliche Verbindlichkeit der vorstehenden Erklaerungen und Aeusserungen aus. Wir verweisen in diesem Zusammenhang auch auf die fuer die Bank geltenden Regelungen ueber die Verbindlichkeit von Willenserklaerungen mit verpflichtendem Inhalt, die in den bankueblichen Unterschriftenverzeichnissen bekannt gemacht werden. This message is confidential and may be privileged. It is intended solely for the named addressee. If you are not the intended recipient please inform us. Any unauthorised dissemination, distribution or copying hereof is prohibited. As we cannot guarantee the genuineness or completeness of the information contained in this message, the statements set forth above are not legally binding. In connection therewith, we also refer to the governing regulations of WestLB concerning signatory authority published in the standard bank signature lists with regard to the legally binding effect of statements made with the intent to obligate WestLB. =============================================Lista de Centura SQLWindows Administrador : [EMAIL PROTECTED] [ http://www.centuraexplorer.com ] Para sair desta lista mande mensagem para: [EMAIL PROTECTED] sem nada no Subject e com o comando a seguir no corpo da msg: "unsubscribe sqlwin" (sem as aspas) =============================================