modProFile 函式庫 風禹科技驗證有限公司 網站 提供 .Net 原始碼

MyGetPrivateProfileInt 函數

說明

取得在依據 INI 檔案格示規範內,某項目整數

本函數之引數列表

引數 型態 位元組 選項 預設值 說明
lpAppName Character*(*) - 必須 (無) 節區名
lpKeyName Character*(*) - 必須 (無) 鍵名
lpFileName Character*(*) - 必須 (無) 包含路徑的完整檔名
lpDefault Integer - 可省略 (無) 預設值,若 INI 檔內無資料時,可以此預設值替代

傳回值

傳回整數

範例

vReservoir%StageCount = MyGetPrivateProfileInt('Config', 'StageCount', strFile, 36)

基本條件

Microsoft PowerStation 4.0 以後版本 | 需同時引用modStrTools模組 | ProFile.f90

請參閱

modProFile 函式庫