| |

VerySource

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

How to loop a column of data into the caption of a Button control array

[Copy link]

2

Threads

3

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-2-15 19:30:01
| Show all posts |Read mode
How to put (for each) a column of data in a database into a Button control array caption
Reply

Use magic Report

0

Threads

10

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 China

Post time: 2020-4-17 13:30:01
| Show all posts
dim id as integer
for each ...
button (id) .caption = ...
id = id + 1
next 'As long as your button array is large enough
Reply

Use magic Report

2

Threads

3

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

 Author| Post time: 2020-4-19 11:30:01
| Show all posts
Can you elaborate, I am not very familiar with the use of for each
Use rs.open "select ab from h" to put it in a Caption of Button (i) i = 8 How to write the code
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