Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Demo Disk
Message
From
15/08/1998 09:53:56
 
 
To
15/08/1998 09:22:11
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00123662
Message ID:
00127147
Views:
48
>>To limit the number of records to be added, create a property in your application class. Set the value to "DEMO". Then, in your add code, check this value. If = "DEMO" and RECOUNT("Table") = 10 (or whatever), display a message "Can't add in demo mode".
>>
>>To run from CD, create a network setup with the setup wizard. Don't include the data in the setup...just leave it on the CD.
>
>Another, easier thing to do: in the Save button's click event, check for Demo and recordcount. Do this at class level. If Demo and TooManyRecords, =messagebox("This is a demo... can't save"), and skip the code which writes the record. Maybe not easier, but needs to be done in only one place - the SaveButton class definition.


I could do the same thing in my generic Add code. The difference is that the user is told "can't save" before they key in everything. Even in a demo, it can be frustrating to get that message after entering data.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform