我需要显示一个带有变量值的 MsgBox,以及该变量中的注释行。
Sub Main
Dim Sys As Object, Sess As Object, MyScreen As Object
Set Sys = CreateObject("EXTRA.System")
Set Sess = Sys.ActiveSession
Set MyScreen = Sess.Screen
Dim a(3) as string, i as integer
a(0) = "123 321 231" ' Lorem ipsum dolor sit amet
a(1) = "211 321 331" ' Consectetur adipiscing elit
a(2) = "121 331 111" ' Sed do eiusmod tempor incididunt
a(3) = "511 321 277" ' Quis nostrud exercitation ullamco
for i = 0 to ubound(a)
if a(i) = Sess.screen.GetString(04, 19, 11) then msgbox a(i) & "Plus the comment line"
next
End Sub