-
I'll tell you the standard answer!Version 2Support library iext
Local variable cnt, integer type. Local variable tmp, integer CNT super list box 1Take the number of entries in the table ().
Counting cycle head (cnt, tmp).If (Superlist Box 1.)Take the current state ** (tmp 1) 1) super list box 1
Set state **(tmp 1,0).Otherwise the superlist box 1Set state ** (tmp 1,1).
If the processing event () endsCounting the end of the cycle ().
-
You can judge whether there is any added content, and if there is added content, just insert a new item, and you don't need to delete all of them and re-insert them, if you really need to delete all the insertions, it will definitely flash, and the faster you flash, the more stakes you have.
Tianya Easy Stack Forum - Honor Team.
This answer** is in the Tianya Easy Stack Forum, you can learn it"Tianya Easy Stack Forum"
Tianya Easy Stack Forum is a professional easy language technology exchange and learning platform.
Our slogan is that helping others is equal to helping ourselves, and your thank you is our unremitting pursuit.
-
Is your clock cycle too fast, or, to determine whether there is new content between the list and the database, if not, you don't need to load it again, if there is, you can directly insert new data into the list, use: count the first of the cycle, to determine the content between the list and the database.
-
4. Then modify the label title by **.
5. Finally, run the program, check the effect, and you're done.
-
1.Add this paragraph after the end of each paragraph**2.Write this on the clock with the period set to 100
Label 1Title = to the text (take the number of table items (super list box)) is probably like this, and the specific ** you go into e to see.
-
.Version 2
Support library iext
Subroutine Superlist Box 1 Left-click the table entry.
Label 1Title to text (Superlist Box 1.)Take the number of selected table entries ().
-
Record the global database. Query ("select * from sales order details where ticket number=" checked).
Debug output (checked).'The checklist number is A001, but the queried data cannot be displayed in the following super list box.
Being able to display a001 correctly does not mean that you have found the final result, it is recommended that you debug the output of the global database separately. Read (record, 1) global database. Read (Record, 2) 3 4 to see if there is a record.
And here. Super list box sales assortment. Insert table entries (and numeric values into a global database (rich text.) Read (Record, 1), False),
Super list box sales assortment. Set the title (super list box sales category. Take the number of table entries ()1, 1, to the text (global database.) Read (Record, 2)))).
Super list box sales assortment. Set the title (super list box sales category. Take the number of table entries (1, 2), to the text (global database.) Read (Record, 3)))).
Super list box sales assortment. Set the title (super list box sales category. Take the number of table entries (1, 3) to the text (global database.) Read (Record, 4)))).
It's better to switch to this.
Table Entry = Super List Box Sales Category. Insert table entries (and numeric values into a global database (rich text.) Read (Record, 1), False),
Super list box sales assortment. Set headings (table entries, 1, to text (global database. Read (Record, 2)))).
Super list box sales assortment. Set the header (table entry, 2, to the text (global database. Read (Record, 3)))).
Super list box sales assortment. Set the header (table entry, 3, to the text (global database.) Read (Record, 4)))).
-
Version 2 supports the library iext
Assembly Window Assembly 1
Assembly variable account, textual.
Assembly variable password, textual.
The number of subroutines in the travel sequence startup window has been created.
Super List Box Potato with Stool 1Insert table entries (, "1", , super list box 1Set the title (0,1,"abcsdfsdfsdfsdfs") super list box 1
Set the title (0,2,"123") to the superlist box 1Insert table entry (, "2", Superlist Box 1Set the header (1,1,"ccc") to the superlist box 1Set the header (1,2,"234") subroutine button 1 to be clicked.
Local variable entries, integers,"6"
Table Entry Superlist Box 1Fetch the selected entry ().
Account number Superlist Box 1Take the title (table item [1], 1) password superlist box 1Take the title (table item [1],2) write the text (open the file (take the current directory (5,), account "|password) infobox ("Successfully write out the data!") ,0,)
Here to read out, password and write out a text file, you must select a row of data in the list with a mouse click.
Subroutine button 2 is clicked.
Local variable text, textual,"2"
The number of characters in the local variable, integer type.
The local variable a, an integer.
Text Split Text (Read into a line (open file (take the current directory (1) 1) account text [1].
Password text [2].
Number of characters Take the text length (account number).
Box 1Content "".
The first of the counting cycle (number of characters, a).
Box 1Contents Box 1Content Take box 1 in the middle of the text (account number, a, 1).Refresh the display ().
Delay (500).
Counting the end of the cycle ().
Delay (1000).
Number of characters takes the length of the text (password).
Box 2Get Focus ().
The first of the counting cycle (number of characters, a).
Box 2Contents Box 2Content Take the middle of the text (password, a, 1) box 2Refresh the display ().
Delay (500).
Counting the end of the cycle ().
-
Easy language super list box to reduce the footprint can be reduced through data pagination, lazy loading, and optimization.
1. Data pagination display: Divide a large amount of data into several small data pagination for display, only display the data of the current page each time, and unload the rest of the data from the memory, which can reduce the memory occupation.
2. Lazy loading: Only when the user needs to view a specific piece of data, the data will be read from the database or Wenliang Sun and displayed in the list box, so as to avoid reading all the data at one time and showing the key carefully, so as to reduce the occupation of memory.
3. Optimization**: Reduce unnecessary object creation and memory copying, and try to use the widening method to avoid duplicate object creation and data copying.
Yi Language is a visual programming language based on the Windows system, which was created by the domestic developer Yilong. Easy Language is easy to use and widely used in application development on Windows operating systems.
-
How to use the easy language super list box:
1. First of all, we draw a "Super List Box" component in the "Startup Window", in the "Work Folder" window, we can set four different display methods by "Type", and select "Report List Box" here.
2. Then select the startup window and add the "Created Completed" event for the "Startup Window".
3. In the "Window Assembly" interface that opens, enter ** as shown in the figure to add a title to the "Super List Box". Superlist Box 1Insert columns (,ordinal number,80,,megalist box 1.).
Insert columns (,Name,80,,Megalist Box 1.).Insert columns (, gender, 80, , superlist box 1.)Insert column (,age", 80, ,4、When we need to add records to the "super list box", we can use the "insert list" method to do so. The specific ** of the added record is:
Index Superlist Box 1Insert a table entry (, Megalist Box 1.)set title (index, 0, "001"); Superlist Box 1
set title (index, 1, "diy8442"); Superlist Box 1set title (index, 2, "m"); Superlist Box 1Set the title (index, 3, "25").
-
As a powerful display component, the super list box in the easy locale environment is of great significance in data display, content organization, and data analysis and processing.
First of all, we draw a "Super List Box" component in the "Startup Window", in the "Folder" window, we can set four different display methods by "Type", here we select "Report List Box".
Then select the startup window and add a "Created Done" event to the Startup window.
Superlist Box 1Insert columns (,ordinal number,80,,megalist box 1.).Insert columns (,Name,80,,Megalist Box 1.).Insert columns (, gender, 80, , superlist box 1.)Insert column (, age, 80, , when we need to add records to the "megalist box", we can use the "insert list" method to do so.
The ** for adding records is as follows:
Index Superlist Box 1Insert a table entry (, Megalist Box 1.)set title (index, 0, "001");
Superlist Box 1set title (index, 1, "diy8442");
Superlist Box 1set title (index, 2, "m");
Superlist Box 1Set the title (index, 3, "25").
end superlist box response to events.
We draw the interface shown in the Startup Window, and in the Folder window, set the Whole Line Selection property, one of the properties of the Mega List Box, to True.
Next, add a Right-Click Table Item event for the Superlist Box.
Label 1Title Specifics of the currently selected record:"
Ordinal number Superlist Box 1Take the title (Superlist Box 1.)Current selection, 0).
Label 1Title Tab 1Title Line Break Ordinal Number: "Ordinal Number."
Name Superlist Box 1Take the title (Superlist Box 1.)Current selection, 1).
Label 1Title Tab 1Title Line Break Name: "Name."
Gender Superlist Box 1Take the title (Superlist Box 1.)Current selection, 2).
Label 1Title Tab 1Title Line Break Gender: "Gender."
Age Super List Box 1Take the title (Superlist Box 1.)Current selection, 3).
Label 1Title Tab 1Title Line Break Age: "Age."
Next, click the "Run" button to test the effect.
-
1. Super List Box:
There are four different types of super list boxes: large icon list box, small icon list box, normal list box, report list box, etc
1. Large icon list box:
The large icon list box can be arranged in a vertical way, similar to the "large icon" display mode in Windows Chinese folder viewing.
2. Small icon list box:
The small icon list box can be arranged in a horizontal icon manner, similar to the "small icon" display mode when viewing Windows Chinese folders.
3. Ordinary list box.
The ordinary list box can realize the arrangement of items in a list way, similar to the "list" display mode when viewing Windows Chinese folders. Similar to the "list box" component in Easy Language, it is used to classify projects.
4. Report list box.
The report list box can realize the header classification method for project filling, similar to the "details" display mode when viewing windows Chinese folders, the report list box can display ** line, as shown in Fig.:
This mode, the display is similar to the ordinary**, and has the most basic filling ability, and the difference between the ** can not be real-time, and can only be displayed in the background by **way. It is a good choice for printing reports. Whether its display function is powerful or not, it is also one of the most practical window components developed by Yi Language over the years.
2. Advanced**.
Advanced** is an indispensable part of the easy language, and it is also the only official **control with personalized characteristics in the easy language, compared with the ordinary**control,Advanced**has more powerful functions,As a**control,It has**control should have**control,And flexibility。 Ability to populate display, instantly, save to file, open from file, as well as **line and print functions. Its development methods are rich and flexible, and it is widely loved by easy language lovers.
To put it simply, Advanced** is an easy-to-language programming control similar to Microsoft Excel. With the continuous development, the advanced ** has already been applied in many large-scale projects.
3. List box.
The list box, as the name suggests, is a control that arranges and displays items in a list, which is a necessary control in programming and development software, and its simple performance makes it widely used in various software development. Similar to the normal list box type in the megalist box, you cannot add icons, and can only display and sort them as text items.
Fourth, the combination box.
The combo box is a basic component that is part of the core control of Easy Language. It can be used in a wide range of applications and is a must-have component in every development software. It not only has the display function of the box, but also has more drop-down buttons, which is convenient for developers to organize their projects.
Clicking the drop-down button will pop up a drop-down list box, simply put, the combo box is a combination of the list box and the box and the button, as the name suggests. Also known as drop-down list box, the figure of the combination box can be seen everywhere in almost all software, which shows its wide range of applications.
The above is my original hand-hitting, I hope it can help you!
Version 2 supports library shells
Support for the library iext >>>More
If you don't change the program, it won't change. Be careful not to confuse the concepts of system and procedure. The QQ** you wear with the SkinSharp program will not change because your computer** is changed to "classic".
Hotkey. Registration (Tab 1.)Take the window handle ()0, F1, > register F1 >>>More
Learn to ask in easy language.
1. Counting cycle (the previous one is how many times you want to cycle for example: 8, and the following cycle can not fill in the variables added each time for example: local counting). >>>More