The above statement Ll_rown from 1 to 100 Ls_mleText ls_mleText [1], [2]... Ls_mleText [100] of the values are know The result of the need to:
The ls_mleText [ll_rown] respectively displayed in mle_1
Such as: ls_mleText [1] appeared in the mle_1, after a few seconds or click cb_1, shown mle_1 ls_mleText [2], after a few seconds or click cb_1, shown mle_1 ls_mleText [3],,,,,,, always like this
CodePudding user response:
1. Define two instance vaiiables Int ii_tot_rows=100//100 array Int ii_rown=0//the current array
2. Create a function, the name is uf_show_content Ii_rown + + If ii_rown & gt; Ii_tot_rows then ii_rown=1 Mle_1. Text=ls_mleText [ii_rown]
3. The button cb_1 Uf_show_content ()//the data shown in mle_1
4. Time A. open evnet Timer (3)//automatic trigger every three seconds Timer event