Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Locate record in Another Form on Private Session?
Message
De
09/06/1998 00:29:58
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00105702
Message ID:
00106174
Vues:
25
>>>What about SET DATASESSION To formb.datasessionid and then LOCATE/SEEK...
>>>You can fire it from KeyPress event to catch 'F2'.
>
>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.


First of all, Thanks all for giving idea(s) to solve my facing problem. ^_~



I also get here for long time. About half year and I should ask my boss to pay
it to raise my member level. :P
In this few months, at least 70% big problem had been solved at UT.
Actually, I have no learned Foxpro in my College Study and just learn at job!

Some of the simple tasks even my college DO NOT teach me well.
I learn SQL in college but I learn Select... into Table NewTable and
Select field1*Field2 AS CalField... at here!!

I feel ashamed when interview one of my job on VFP 3.0 and ask me to select
some data with some age range (2.5 - 4 years old) into excel file.
I donno how to do but actually 2 statements to finish.
I know this basic technique after my currect job 3 months as Self-learn...
~~~>_<~~~ Quite poor. I am a High Diploma holder on Software Engine but I donno
the way to enhance myself.
Sorry to talk my feeling, not related to topic.


At UT, I learn many things, sometimes I take a look with other thread and learn
more and some of the ideas I never think before.
For answering my question, I will make a testing on it or think aloud with other
possible outcomes that maybe ripper effects!
In case of big tasks, I need plan and report my boss wether it is worth to expand time to do or not and also time-schedule on it.
So, actually I may do about 50% of answer.
2-3 months ago, I try to answer ppl question at UT IF I know the solution provided that My Thought may not the best.
Previously, I wonder that my coding technique is totally poor but now steal quite a lot at UT! :D=== Great Thanks again!



John, I also have make a wrong rude message on someone reply but once I found the problem, I say sorry to ppl. In any case, progr should point to case, not ppl. I reply this message to all ppl who replied this thread to know one thing.
We Are Friends, Not Rival!!

If everyone agree, I would ask SYSOP to erase the Whole thread!
For any question on using private session or not, Pros and Cons.
I will ask and read at Private or Not Private Session Thread!
The weak wait for chance, The strong bid for chance,
The clever notch up chance, but The merciful give you chance.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform