For i=1 To 10
name$='tb'+CHAR(i)
If (name$='') Then
** Your action here
Else
** Your action here
End
Next i
name$='tb'+CHAR(i)+'$'
If (x$='' | y$='') Then
** run some commands
Else
** run other commands
End
میتونی تمام اونها رو بایه پیشوند نام گذاری و شماره گذاری کنی و با یه حلقه چک کنی
مثلا میتونی برای 10 تا تکس باکس اسم اونها رو بذاری tb1,tb2,...,tb10 و پر بودنش رو با یه حلقه مثل حلقه زیر چک کنی
کد:For i=1 To 10 name$='tb'+CHAR(i) If (name$='') Then ** Your action here Else ** Your action here End Next i
s$ = 'EditBox#EditBox1#EditBox2#EditBox3#'
s$ = 'address#title#price#telephone#'
n = GetArrayNum(s$,#)
For i = 1 To n
t$ = 't$ = ' + GetArrayItem(s$,#,i) + '$'
RunScriptCode("t$","0")
If (t$ = '') Then
** Your action here
Else
** Your action here
End
Next i









