Tuto WINDEV 25
168 Part 4: Full application with data 2. Display the popup menu (right mouse click) and select "Choose a style". 3. All styles defined for the buttons are displayed in the window. Select "BTN_First". 4. Validate. ▶ Modify the name of Button control: 1. Display the description window of control: • Select the Button control. • Display the popup menu (right mouse click) and select "Description". 2. This control is named "BTN_First". 3. Validate the description window. ▶ We are now going to type the WLanguage code associated with this control: 1. Right-click the control. Select "Code" from the menu that is displayed. 2. In the code window that appears, write the following WLanguage code in the "Click" event: // Reads the first customer HReadFirst(Customer) IF HOut(Customer) = True THEN // No customer Info("No form to view.") ELSE // Displays the customer data FileToScreen() END HReadFirst is used to read the first file record according to the key used for the last search (FullName in our case).
Made with FlippingBook
RkJQdWJsaXNoZXIy NDQ0OA==