Peter,
There is another way to accomplish what you want (a delayed load):
1) Override CursorAdapter.AutoOpen method as follows:
this.CursorFill(.F.,.T.)
return
2) Call CursorAdapter.CursorRefresh() when you think you are ready to fill cursor with data.
About CODIGOX variable:
You can add property CODIGOX into CursorAdapter and replace "?CODIGOX" with "?this.CODIGOX" in SelectCmd.
SelectCmd = "select Bancos.CODIGO_BANCO, Bancos.CONTA_C, Bancos.BANCO, Bancos.AGENCIA, Bancos.APELIDO
from Bancos WHERE CODIGO_BANCO = ?this.CODIGOX"
Thanks,
Aleksey Tsingauz.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement