Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Refresh() statement
Message
De
05/05/1999 23:22:02
 
 
À
05/05/1999 22:43:10
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00215218
Message ID:
00215607
Vues:
32
>The above code fires my child form (0ffices)
>
>In the init() of my child form is:
>
>lparameters tnId
>select offices
>set order to tag nofficeid
>set key to tnId
>

I am still unclear on exactly what you want. Is this child form modal? or does the user interact with the parent form (switching records) after the child form is open? My answer depends strongly on which of the above- modal or simultaneous. The code example I gave you before was for a scenario in which the user clicks a button to launch a child form, then clicks back to the parent form before closing the child form, changes records by clicking in a grid or whatever, and you want the child form to be signalled to refresh. So the code sample might go in the parent form's grid' AfterRowColChange event. This is scenario #1 in which the child form is NOT modal.

Scenario #2 doesn't need anything so complicated. If you are using the default datasession in the child form, then all you should have to do is call theform, and the databound fields will show the right values. If you are using private datasessions, (which it looks like you might be), you need to pass the parameter (which you are), use the parameter to position the record pointer or REQUERY your p-view, and do nothing else.

>I can't wait until this is second nature. Writing code is a nightmare for me at my stage of development knowledge. I go to bed each night and dream of the day when I am an expert in coding!!!

Well, be patient, it just takes doing everything a few times. I still don't consider myself an expert, I am still learning every day. I remember feeling like you do now about VFP just a little less than 2 years ago.

A hint if I may- there is no faster way to learn than by example. Dig into the samples that come with VFP, and get your hands on one of the freeware frameworks floating around and see how things are done. Spend a good portion of your day just dedicated to learning, and not getting work done, because in the long run, your work will get done faster because you won't waste time heading the wrong direction. Browse the messages here as often as you can. That's how I learned a lot of what I know; from the likes of Edward Pikman, Arnon Gal-Oz, George Tasker, Barbara Paltiel and others. But you learn from other peoples' question too, so don't just use the Thread for your own questions. Stick with it. It gets easier and easier.

>
>Thanks again for the help.
>
>I am definitely learning a lot each day form you and other developers.
>
>Jason
Erik Moore
Clientelligence
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform