Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Saving and loading default user preferences
Message
From
27/12/2006 08:32:06
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
27/12/2006 08:27:13
Suhas Hegde
Dental Surgeon
Sirsi, India
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01180427
Message ID:
01180448
Views:
13
>>>hi,
>>>
>>>How can I save and load default prefrences ?
>>>
>>>My idea is
>>>
>>>Saving it to a text file with a .pre extension and loading the same by using file name with .pre extension.
>>>
>>>i am against using a .dbf as .pre (which would have been easy) but if the user creates a any file with .pre , while loading the application might error out with "not a table".
>>>
>>>Any idea on how to do the same ?
>>>
>>>I am not worried abt the user changing the saved .pre because i will validate the ranges for the definations.
>>>
>>>Eg:
>>>
>>>MAX = 30
>>>MIN = 30
>>>Timeperiod = 10
>>>..
>>>
>>>..
>>>
>>>is this a proper way or is there any better way ?
>>>
>>>suhashegde
>>
>>You can check if it's a table. Also you can save it as XML and XMLToCursor to get as cursor.
>
>how can i check it if it is a table ?
>do you mean low level functions ?
>
>suhashegde

Lowlevel or on error wrapping.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform