Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Must I release a demo or not ?
Message
From
03/08/2003 11:40:12
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00816289
Message ID:
00816298
Views:
14
>I've realised that many website does not have a demo
> of their software
>
> I developed a software for repair shops.
>
> Now I need the opnion of the everybody
>
> Does demo version really increase sales ?
>
>
> Moises

I think you should try it.

As to the technical aspects, one easy way to solve that is to simply restrict reccount() in some critical tables.

You can have a constant (see: #define and #include) called DEMO_VERSION, which can either be .T. or .F. Just set this to .T. for the demo version, and recompile everything. Or set it to .F. for the final version, and, once again, compile everything.

Let's take the framework Visual Extend as an example. This framework has a method Form.OnInsert(), which is called on every form when the user tries to insert a new record. The code, in this case, would be:
* Form.OnInsert()
#if DEMO_VERSION
  if reccount() > 100
    ErrorMsg("The demo version only allows 100 records here.")
  else
    return DoDefault()
  endif
#else
  return DoDefault()
#endif
In Visual Extend, ErrorMsg() is a wrapper for MessageBox(). DoDefault() would insert the record, in the inherited class.

Note that the use of #if results in zero overhead in the final version.

HTH,

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform