| |

VerySource

 Forgot password?
 Register
Search
View: 677|Reply: 2

How to put a column of data in the database into the Caption of an Button control array with for each

[Copy link]

2

Threads

3

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-2-11 18:00:02
| Show all posts |Read mode
How to put a column of data in the database into a Button control array caption
Reply

Use magic Report

0

Threads

14

Posts

14.00

Credits

Newbie

Rank: 1

Credits
14.00

 China

Post time: 2020-4-13 14:15:01
| Show all posts
It is more convenient to use While wend
While Not rs.EOF
        Command1 (rs.AbsolutePosition-1) .Caption = rs.Fields (1) .Value
        rs.MoveNext
    Wend
Reply

Use magic Report

1

Threads

8

Posts

9.00

Credits

Newbie

Rank: 1

Credits
9.00

 China

Post time: 2020-8-20 17:15:01
| Show all posts
But WHILE WEND is less efficient than FOR EARCH
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list