免費論壇 繁體 | 簡體
Sclub交友聊天~加入聊天室當版主
分享
Board logo

標題: WritePrivateProfileString [打印本頁]

作者: mhfo    時間: 2013-12-17 09:12     標題: WritePrivateProfileString

Private Declare Function WritePrivateProfileString Lib "kernel32" Alias "WritePrivateProfileStringA" (ByVal lpApplicationName As String, ByVal lpKeyName As String, ByVal lpString As String, ByVal lpFileName As String) As Integer
       

Dim lenReturn As Integer
        lenReturn=WritePrivateProfileString("textyy","title",Me.Text,My.Application.Info.DirectoryPath& "\ATEconfig.ini")
'vbNullString  ME.TEXT改為vbNullString 會變成刪除該字串內容


輸出結果
[textyy]
title=Form1




歡迎光臨 魚骨頭的雲端圖書館 (http://mhfo.hotbbs.info/) Powered by Discuz! 7.0.0