[Gambas-user] BOOLEAN PICTURE PROPERTY

Rizky Tahara Shita rizky.tahara at ...626...
Wed Jun 15 12:09:21 CEST 2005


On 6/15/05, BUDI ARIEF GUSANDI <budi.a.gusandi at ...626...> wrote:
> I'm actaully at works too  in my office ;)
> Anyway do you have sample code on how read/write using setting ? a
> simple one

do you mean like this one ??
i used to save mysql settings connections...


PUBLIC fl_sett AS Settings

PUBLIC SUB write_config(host AS String, lgn AS String, pass AS String,
port AS String)
''sub to write config files''
  fl_sett["Host"]=host
  fl_sett["User"]=lgn
  fl_sett["Pass"]=pass
  fl_sett["Port"]=port
  fl_sett.Save
  read_config
END

PUBLIC SUB read_config()
''sub to read config files''
  host=fl_sett["Host"]
  lgn=fl_sett["User"]
  pass=fl_sett["Pass"]
  port=fl_sett["Port"]
END


hope usefull...




More information about the User mailing list