Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP6SP5 - Table of Default Values and Validation for Cri
Message
De
03/06/2003 06:41:28
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00795245
Message ID:
00795567
Vues:
26
>Cetin
>
>>Looking as per your request. Honestly read before but didn't understand what you're trying to do.
>
>Sorry didn't mean to be a drag, but I know you had the experience and we were going through a thread, so I guessed I'd personally point it to you.
>
>>Sounds like AfterNew() is filling the new record with defaults. And sounds textbox.valid is validating the content, right ?
>
>Exactly
>
>>If so why not directly edit view to have these defaults, validations and validationtext. You could write a developer tool (prg) to get these defaults and validation from base table(s) and put into view properties. To me it seems to be easier to do a series of dbgetprop()/dbsetprop(). Or directly use 'Properties' button of designer (if you're using the designer), still would be easier, no?
>
>I have this app this can be used in the same industry, but some of the specs like no. of the test beds for engines, which will vary from company to company, plus default values of RPM of engines etc. will vary again. So the idea here was to sell it again and again <g>. I wanted to reduce work between companies in ditribution as it is still in a jello mode and modules will keep on changing for atleast 6/8 months.
>
>The fixed specs I can freeze into the app and DBC's.
>
>Thanks for the trouble.
>
>
>Sincerely.

No didn't mean trouble :) Wanted to say I didn't reply before as I wasn't sure I understood :)

OK you want to create different default, validations per company. Still wouldn't a programmatically view creation answer your problem. You compile one view 'creator' per company.
OTOH what you do should also work. I do similar in FoxyClasses EditGrid and directly query DBC for validation code.
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform