Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Locate record in Another Form on Private Session?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00105702
Message ID:
00105925
Vues:
33
>If you feel they are wrong, write a parallel message explaining your points.

Hi Barbara,

Fair enough. Here is my original response to Ed:

>>>
Ed....

Recommending anybody doing this is extremely dangerous - at least without taking the proper precautions and understanding the ramifications of doing a Set DataSession To - perhaps the most dangerous thing to do in VFP. Specfically, if you do a Set DataSession To in a form with bound controls in a different private data session - that form's bound controls are toast. Rather, you need to pass the data session around. So, in this case, you would have form 1 pass its datasession ID to form 2, form 2 would then do a set datasession to the datasession that was passed. This should be done in the Load(). So, it is a good idea to have a custom property of the form that would hold this passed data session ID. Prior to passing control back to another form - it is necessary to get back to the calling form's private data session first. Otherwise, the bound controls will be toast.

Other approaches include creating a FormSet. Multiple forms can then have access to the same private data session. Another alternative is to have form 2 modal with the datasession setting to Default. In this case, Form2 will inherit Form1's private data session.
<<<

No personal attack there. Do you agree? I got ticked off by Ed's response to me - bascially from that standpoint of his reponses are based on the way he does things and that there is quite a bit of assumed knowledge. To me, that just does not cut it and is somewhat ignorant IMO. I called him on it. Barbara, if you asked the same question, which answer would you rather get - mine or Eds. All I am saying is that if you are going to take the time to answer a question - particulary one where explicitly setting a data session is involved - you better have your ducks in a row when responding. Otherwise, you could be - and most likely lead somebody down a very bad path. If I followed Ed's response to the letter, I would end up with all kinds of errors. Now, is that good advice?

You see, part of my business is in cleaning up the messes after so-called consultants have finished their handy work. Nice for me, but a rotten proposition for the client. Mind you, I am not lumping Ed in this category. I have never seen his work and there fore cannot comment. But, it really ticks me off that when somebody is shown to have given some poor advise - and they still do not get the message - then the wording has to be a bit stronger. Sometimes airing it out in public is the way to go. I certainly expect to get a fair amount of hand-slapping over this. However, I see a greater good arising as a result of it.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform