Tuto WINDEV 25
104 Part 3: My first database 4. The key definition is performed as follows: re-select the row of the "Date" item to activate the description controls on the right-hand side of the window. Then, simply specify the type of key used. In our case, the date is a key with duplicates. 5. You must also define the search direction of the key. The search direction is used to define the default sort for this item. In our case, when a browse is performed on this key, the default sort order will be "ascending". ▶ We are now going to create the "Status" item that is used to find out the order status. 1. Position the cursor on a new table row. Enter: • the name: Status • the caption: Order status • the type: Radio Button, List Box, Combo Box. In the window that appears, you can select the type of control created by default for this item. It will be a radio button in this case. Validate the window. 2. In the lower section of the screen, click the link to display the parameters of the control linked to the selected item. The information typed in the new window that is displayed will be automatically used when creating windows linked to the data file. You will find here the control type and the caption. We are going to type the following options in the "Content" tab: • Click the "Content" tab. • Click the "+" button to add the first option. • The option 1 corresponds to Pending. Type "Pending" in the edit control found on the right. • Click the "+" button to add the second option. • Type "Validated" instead of "Option 2". • Click the "+" button again. • Type "Canceled" instead of "Option 3".
Made with FlippingBook
RkJQdWJsaXNoZXIy NDQ0OA==