Home > database >  How to use a button to add images
How to use a button to add images

Time:09-22

I'd like to add a button in the DW data window, click the button can be used to add custom images. Then save the data can be stored in SQL data table. Please expert advice, I am a novice what all don't understand. Trouble written detail. THX

CodePudding user response:

No one will be? For help

CodePudding user response:

Button is added in the dw is easy, design interface in dw, select insert - control - button, you can see the button properties: you can fill in the name of the button (text); Perform operations option (action), such as user customization, search, delete, update, and so on... ; Pucture plus picture filename is the file you want to... ,
As for your requirement of saving data, there are two ways:
One is directly in the action select update (13), after the program is running, click on it, the data in the data window can be saved to the SQL database,
And how it is to select the user to define the user define (0), this is a more flexible way, can you write a script to control operation, but in the window containing the DW case writing script to achieve the DW,
General in the dw clicked event:
IF dwo. Name='b_1 then//which b_1 is the add button name, you can define your own
//write you want to do action
END the IF
  • Related