The problem with using the registry, IMHO, is that it is machine dependent, rather than user dependent. If a user changes machines that info is lost. Like Mr. Booth, I also use a DBF. This allows me to store other User definable parameters, such as: Toolbars on Form, or Free? Warn before Cascading Deletes? Warn Before Cancel? ToolTips and Status Bar On/Off? Show Required Fields in a different Color? ByPass the City and State, having the ZipCode determine that... You could do all that in the registry, but setting it back up for a temporary sessiuon would barely be worth it.
jt
>You can use the registry.prg that came with VFP5, or the registry classes that come with VFP6. My form class create/read/write keys like HKEY_CURRENT_USER\Software\DFSD\CEPASTATUS\frmLastStops.Bform\Height etc. I know the registry is thought of as something to be feared, but it really is quite useable to store little things like this. Keeping the data in the registry makes it local to each user's machine something which is a little harder to do in a networked app with tables or mem files.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only