|
3#
楼主 |
发表于 2008-12-31 15:35:22
|
只看该作者
编译脚本,报这样的错误
Compiling oceanv5_Address.rec...
oceanv5_Address.rec(40) Error: Unknown function: label1
oceanv5_Address.rec(46) Error: Label 'label1' is missing
0 warning(s), 2 error(s)
我查了SQABasic语言帮助文档,这是帮助文档里的例子,但我还是不知道自己哪里用错了
Sub main
Dim str1 as String
Dim answer as Integer
Dim nextweek
Dim msgtext
i: str1=InputBox$("Enter a date:")
answer=IsDate(str1)
If answer=-1 then
str1=CVDate(str1)
nextweek=DateValue(str1)+7
msgtext="One week from the date entered is:"
msgtext=msgtext & Format(nextweek,"dddddd")
MsgBox msgtext
Else
MsgBox "Invalid date or format. Try again."
GoTo i
End If
End Sub |
|