11. 文字列の演算 ((33))
Dim num1 As Integer
Dim num2 As Variant
Dim st As String
num1 = 5
num2 = 5
st = "123"
Messagebox num1 + num2 ' 10
Messagebox num1 & num2 ' "55"
Messagebox num1 & st ' "5123"
Messagebox num2 & st ' "5123"
Messagebox num1 + st ' 128
Messagebox num2 + st ' "5123"
24. プラットフォーム依存の机能を使う ((33))
Sub Click(Source As Button)
Dim cdrive As String
Dim cdir As String
If (isdefined("WIN32")) Then
cdrive$ = Curdrive$()
Else
If (isdefined("MAC")) Then
cdir$ = Curdrive$()
cdrive$ = Left$(cdir$, Instr(1, Dir$, ":"))
End If
End If
Messagebox ("ドライブ名 : " & cdrive$)
End Sub
32. スクリプトライブラリ -- ダイナミック
UUssee 文と処理内容を文字列としてを
EExxeeccuuttee に渡す
if condition=True then
Execute | Use "MyLibrary"
Call MySub ( ... )
val = MyFunc( ...) |
Else
...
End If
47. 日本語別名処理のコード例
Dim session as new NotesSession
Dim namelist as variant
Dim nname as NotesName
namelist = session.UserNameList
forall nname in namelist
print "Common name =" & nname.common
print "Language =" & nname.language
end forall