Guidance
指路人
g.yi.org
software / rapidq / Examples / Tools - IDE, Designer, Builder / MenuDesigner / Desing / IniFiles.bas

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
     DECLARE FUNCTION GetIniPaht AS STRING
     DECLARE FUNCTION GetIni(szSection AS STRING, svVariant AS STRING, Default AS STRING) AS STRING
     DECLARE SUB WriteIni(szSection AS STRING, svVariant AS STRING, svValue AS STRING)

'User's Variables
     DIM iLenght AS INTEGER
     DIM lpBuffer AS STRING
     DIM uSize AS LONG
     DIM svReturn AS STRING
     uSize = 260

'Function to GET Windows Paht
     FUNCTION GetIniPaht
      lpBuffer = SPACE$(uSize)
      iLenght = GetWindowsDirectory( VARPTR(lpBuffer), uSize)
      GetIniPaht = LEFT$(lpBuffer, iLenght)
     END FUNCTION

'Function to GET information into an INI File
     FUNCTION GetIni(szSection AS STRING, svVariant AS STRING, Default AS STRING) AS STRING
      lpBuffer = SPACE$(uSize)
      iLenght = GetPrivateProfileString(szSection, svVariant, Default, @lpBuffer, uSize, szFile)
      GetIni = LEFT$(lpBuffer, ilenght)
     END FUNCTION

'Sub  to WRITE information from an INI File
     SUB WriteIni(szSection AS STRING, svVariant AS STRING, svValue AS STRING)
      WritePrivateProfileString szSection, svVariant, svValue, szFile
     END SUB
掌柜推荐
 
 
¥1,290.00 ·
 
 
¥918.00 ·
 
 
¥890.00 ·
 
 
¥294.00 ·
 
 
¥430.00 ·
 
 
¥1,380.00 ·
© Sun 2024-11-24  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0 Last modified:2010-11-14 18:07:52