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

StrMultiLineGetPrivateProfileSection 函數

說明

以多行陣列方式取得在依私有剖析檔 (INI) 字串內節區內容

本函數之引數列表

引數 型態 位元組 選項 預設值 說明
lpApplicationName String - 必須 (無) 節區名
strIniFile String - 必須 (無) 依據私有剖析檔 (INI) 檔案格示規範之字串
wFlags enuNoGetData 4 可省略 No_Common Or No_Null_Line 是否刪除特定行數:
常數名 數值 說明
No_Default 0 不刪除任何資料
No_Common 1 刪除以 ' 或 rem 開頭的註解行
No_Null_Line 2 刪除整行均為空白或僅有換行符號之空白行
No_NotData 3 刪除註解行及空白行 (No_Common Or No_Null_Line)

傳回值

傳回字串陣列

範例

Dim iniBuffer As String
iniBuffer = myGetFullTextFile(lpFilename)

Return StrMultiLineGetPrivateProfileSection(lpApplicationName, iniBuffer, wFlags)

基本條件

Visual Studio .Net 2002 以後相容版本 | 需同時引用modFileTool模組 | ProFile.vb

請參閱

modProFile 函式庫 | MyMultiLineGetPrivateProfileSection