Home > Back-end >  Pray god to help look at this code is the last sentence, compile machine, however, don't know h
Pray god to help look at this code is the last sentence, compile machine, however, don't know h

Time:09-21

The Form of the OnClick event:
Void __fastcall TForm1: : FormCreate (TObject * Sender)
{
QueryBJBM - & gt; The Open ();
QueryXSXX - & gt; RequestLive=false;
QueryXSXX - & gt; The Open ();
TableXYBM - & gt; The Open ();
ComboBoxXYBM - & gt; The Items - & gt; The Clear ();
TableXYBM - & gt; Active=true;
TableXYBM - & gt; The First ();
If (TableXYBM - & gt; Eof& & TableXYBM - & gt; Bof)
return;
while(! TableXYBM - & gt; Eof)
{
ComboBoxXYBM - & gt; The Items - & gt; Add (TableXYBM - & gt; FieldByName (" XYMC ") - & gt; AsString) are identical.
TableXYBM - & gt; The Next ();
}
ComboBoxXYBM - & gt; ItemIndex=0;
ComboBoxXYBMClick (Sender); }


CodePudding user response:

ComboBoxXYBM - & gt; Click (); Have a try

CodePudding user response:

Well, I try to ask a question:
I use the desktop built four form, and then use the c + + Builder SQL Explorer to build data table alias, is a building of a table, or to have these form a synthesis and alias

CodePudding user response:

reference 1st floor u010165006 response:
ComboBoxXYBM - & gt; Click (); Try

To help to see below problem, thanks

CodePudding user response:

These days with BDE, before it is too late to change, even if use ADO + Access,
A nickname is against the database, create good alias for the database,

CodePudding user response:

Good old BDE!
Alias refers to the entire database,
Listen to the upstairs, use ADO,

CodePudding user response:

With BDE how deployment
The original poster or listen to the opinions of the upstairs, with ADO

CodePudding user response:

This year also doing bde
Does your zha a deployment?