Could you please tell me, how can I show my variables in a dialog box? If input 2, in the dialog box, I want to see first, adres0 and city0 and secondly adres1 and city1 and thirdly adres3 and city3 . In addition, "Error trying to create dialog:MyDialog" message appears each time.
Code: Select all
input>count,how many?
if>count=,end
let>k=0
repeat>k
let>adres=John Street%k%
let>city=London%k%
Wait>0.05
PutClipBoard>adres
let>adres%k%=adres
let>adres=
Wait>0.05
PutClipBoard>city
let>city%k%=city
let>city=
Wait>0.05
let>k=k+1
until>k,count
//SetFocus>Microsoft Excel - *
let>z=0
repeat>z
Wait>0.05
Dialog>MyDialog
Width=450
Height=200
Top=500
Left=200
Label=%adres%%z%,50,50
Label=%city%%z%,50,70
Button=YES,14,5,165,20,3
Button=NO,225,5,165,20,2
EndDialog>MyDialog
Show>MyDialog,result
Label>MainLoop
If>result=2,End
If>result=3,Write
Goto>MainLoop
label>Write
send>adres%z%
Wait>0.05
press tab
Wait>0.05
send>city%z%
Wait>0.05
press down
Wait>0.05
press left
Wait>0.05
let>z=z+1
until>z,count
Label>End