` Printed Icetips Article

Icetips Article



Par2: Saving and restoring listbox formatting
2000-01-12 -- Arnor Baldvinsson
 
>Is there any way to save and restore listbox settings? Its easy to make the
>fields on a listbox resizeable, but once the box is closed you have to start
>all over :-(

Loc:Format  String(2048)

 Code
 ! Restore
 Loc:Format = GetIni('Browse','MyBrowse','','app.ini')
 If Loc:Format
   ?List{Prop:Format} = Clip(Loc:Format)
 End

 ...
 ! Save
 PutIni('Browse','MyBrowse',?List{Prop:Format},'app.ini')

This will save and restore the listbox between sessions.



Printed November 21, 2024, 7:32 am
This article has been viewed/printed 35193 times.