Home > database > Ask a query program! Urgent need!
Ask a query program! Urgent need!
Time:09-27
According to the contents of the edit box shows data line! Want to achieve the effect of: such as input the content of the "day" shows begin with days, and then input "dragon" is displayed in "day dragon" at the beginning of the content, in turn down!
CodePudding user response:
You "like" it isn't solved the problem?
CodePudding user response:
Which one of the events with this?
CodePudding user response:
In the single line edit box to add a custom Event, the Event ID for pbm_enchagne, query code written in the newly added events and is ok
CodePudding user response:
If the single line edit box is dw, event eidtchange: the current edit data with the parameter data If the single line edit box is common controls, then increase pbm_enchange events, data take its text attribute
Retrieval can be used to filter or query 1, String lsname
Lsname=sle_1. Text \ \ lsname=data Dw_1. Setfilter (" field names like '% "+ lsname +"' ") Dw_1. Filter () Or 2, String lsname, LSSQL
Lsname=sle_1. Text \ \ lsname=data LSSQL=issql + "where the field name like '%" + lsname + "' "\ \ issql is an instance variable can be the window to open the assignment issql=dw_1. Getsqlselect () Dw_1. Setsqlselect (LSSQL) Dw_1. Settransobject (sqlca) Dw_1. Retrieve ()