添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
绅士的冰淇淋  ·  MYSQL ...·  昨天    · 
重感情的生姜  ·  Doconomy·  昨天    · 
冷静的柑橘  ·  Android Media3(三)— ...·  1 月前    · 
失恋的酱肘子  ·  .Net Core 3.1/.Net 6 ...·  2 月前    · 
爽快的凉茶  ·  JS 基础之: 深入剖析 ...·  2 月前    · 

I keep getting the error “Argument is not optional” when running the following

REM  *****  BASIC  *****
Sub Main
    Call nRight(5)
End Sub
Sub nRight(n as Integer)
    print "n = ",n
End Sub

What am I doing wrong?

Thanks

You will get that error if your insertion point is within Sub nRight when you run the macro.

To avoid the error, position your insertion point within Sub Main before you run the macro, e.g. by clicking within the line ‘Call nRight(5)’.