Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
N-Tier Design Question
Message
De
18/02/2003 06:19:27
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00753308
Message ID:
00754386
Vues:
15
PMFJI

Kevin

I just wanted to highlight a problem with binding to RecordSets, if EOF is reached, you get nasty errors occurring, and the textboxes will un-bind, if you have Valid and Refresh code in each class, they can check for EOF before attempting to display a value.

Kev

>Jim,
>
>You are correct - the Biz object is what the form should be seeing.
>
>While I like the ideas you expressed in your samples, there is one thing
>I'm not sold on - No bound fields.
>
>I'd like to be able to say;
>
>
>ThisForm.oBizObj.Navigate("Next")
>ThisForm.Resfresh()
>
>
>This Biz object could do a oRecordSet.MoveNext, and if the
>controlsources are set to:
>
>
>This.ControlSource = ThisForm.oBizObj.oRecSet.Fields("somefieldname").Name
>
>
>This is all assuming an ADO data source, of course. But it does also expose the
>recordset object at the Biz object level.
>
>Not sure what the right approach is
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform