1 / 5

InputBox 関数の使用例

変数 = InputBox( メッセージ文字列 , タイトル文字列 ) a = InputBox( “ 半角で足される数を入力してください " , " 足される数 " ). InputBox 関数の使用例. MsgBox メッセージ文字列 , ボタンの種類など , タイトル文字列 MsgBox c , 0 , " 計算結果 ". MsgBox 関数の使用例  (戻り値を使用しない場合). InputBox 関数の戻り値. 文字列型 何も入力しない場合は、 空の文字列 ( "" )

Download Presentation

InputBox 関数の使用例

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 変数=InputBox(メッセージ文字列, タイトル文字列) a= InputBox(“半角で足される数を入力してください" , "足される数") InputBox関数の使用例

  2. MsgBox メッセージ文字列, ボタンの種類など, タイトル文字列 MsgBox c , 0 , "計算結果" MsgBox関数の使用例 (戻り値を使用しない場合)

  3. InputBox関数の戻り値 • 文字列型 • 何も入力しない場合は、空の文字列 ("") • キャンセルボタンをクリックした場合は、空の文字列 ("")

  4. 単精度浮動小数点数型 半角数字の文字列 単精度浮動小数点数型 空の文字列 単精度浮動小数点数型 半角の数字以外の文字列 暗黙の型変換の例 • 暗黙の型変換が成功する場合a= "1" • 暗黙の型変換が成功しない場合a =""a = "あ"

  5. 単精度浮動小数点数型以外の型 単精度浮動小数点数型 単精度浮動小数点数型に変換 データ型変換関数の例 a = CSng ( b)

More Related