[Pb] use the SQL statement specified by the parameter to add data to the specified drop-down list box.

Source: Internet
Author: User
Tags sql using
//////////////////////////////////////// //////////////////////////////////////// //////////////////////////////////////// Function Name wf_additem (dropdownlistbox fo_obj, string fs_ SQL) // parameter: fo_obj is the drop-down list box, And fs_ SQL is the SQL statement // return value: NONE // function: use the SQL statement specified by the parameter to add data to the specified drop-down list box ////////////////////////// //////////////////////////////////////// //////////////////////////////////////// //////// string ls_item declare item_cur Dynamic Cursor for sqlsa; // define the Dynamic Cursor prepare sqlsa from: fs_ SQL using sqlca; open dynamic item_cur; // open the Dynamic Cursor fetch item_cur into: ls_item; // obtain the data fo_obj.setredraw (false) // disable the do while sqlca refresh in the drop-down list box. sqlcode = 0 fo_obj.additem (ls_item) // Add the project fetch item_cur into: ls_item; loop fo_obj.setredraw (true) to the drop-down list box to close item_cur; // close the Dynamic Cursor

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.