Guidance
指路人
g.yi.org
software / rapidq / Examples / QObject / Object / QIni.html

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

  
Appendix A: QINI  
Documentation component by D.Glodt (c)2000-2001 Appendix A: QINII

QINI Component

QINI is a component no visible to read and write init files for application.

 

 

QINI Properties

Field Type R/W Default




FileName STRING RW
Init file name (*.ini)
Exist INTEGER R FALSE
TRUE if file exist
Section STRING LE
Name of parameters section from file
WinDir STRING R
Path of window dir
SystemDir STRING R
Path of directory system window
TempDir STRING R
Path of  directory temp window

QINI Methods

Method Type Description Params




Get FUNCTION(Key$,Default$) AS STRING Return the value of  Key$ parameter 2
Write FUNCTION(Key$,Value$) AS LONG Write value of Key$ parameter in the init file 2

QINI Events

Event Type Occurs when... Params




QINI Examples

$TYPECHECK ON
$Include "Rapidq.inc"
$include "Object\QINI.inc"

dim ini as QINI
ini.FileName="c:\Temp\test.ini"
ini.Section="Parametres"
ini.write("par1","1")
ini.write("par2","2")

CREATE Form AS QFORM
  Caption="init"
  Width=300
  Height=110
  Center
END CREATE
if ini.exist then form.caption=ini.get("par1","no param")
Form.ShowModal
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Sat 2023-2-4  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0 Last modified:2002-09-03 11:11:34