|
|
 |
|

SOFTIMAGE|XSI FAQ/スクリプト
|
|
|
VBScript内でファイルブラウザを開く方法を紹介します。以下のコードをインプリメントして下さい。拡張子でフィルタリングすることも可能です。選択したファイルは、dlg.filenameで参照できます。
※このファイルブラウザはActiveXコントロールを使用していますので、VisualBasicをインストールしておく必要があります。
' Create the dialog object.
set dlg = createobject("mscomdlg.commondialog")
' Set the file filter.
dlg.filter = "Text Files (*.txt)|*.txt|All Files (*.*)|*.*"
' If you don't do the following, you get an error.
dlg.maxfilesize = 128
' Display the File Open dialog.
dlg.showopen
if dlg.fileName <> "" Then
Logmessage dlg.filename
End if

|
お問い合わせ
|
製品に関するご質問、見積りなどお気軽にお問い合わせください。

|
|
|
|