Information générale
Catégorie:
Applications Internet
>>In Rick Strahl's white paper, he states that you cannot bind objects to RDS data because originally when you create the RDS object and build your cursor, the cursor can fail.
>>
>>You couldn't do this in the init, of course because the your form objects have already been initialized and the form would fail, being unable to bind the objects.
>>
>>He then goes on to say that you could place the code in the load but there is no easy way to abort the process if the cursor fails to load. This is the part I do not understand. If the cursor fails to load, why can't you just return a .F. in the load?
>
>Returning .F. from Load doesn't do anything... Returning .F. from Init will cause the object not be created, but Load doesn't check for result values (unless this has changed recently).
That's what I thought until I tested it. Actually returning a .F. from the load will prevent the form from loading but as Erik Moore has pointed out it is not a documented feature. Actually this has been available since VFP 5.0.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement