Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to send modal form values to the parent form
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00992593
Message ID:
00992606
Vues:
20
>Hi All,
>i've a form which is opening modal for data entering via barcode reader . as a data enter there is some calculations and i wantto show these some calculation results on the parent form without close this modal form.
>
>How can i do this ?
>
>TIA

Soykan,

You could pass a parameter to the modal form which is, for example, the textbox(s) of the parent form where you want to display the results.

So, in the modal form's init
lparameters toInfoControl

this.InfoControl = iif(vartype(toInfoControl) = 'O' and pemstatus(toInfoControl, 'Value', 5), toInfoControl, .null.)
Now, after you make your calculations, you can do:
lnMyCalculation = SomeCalculation()
if not isnull(thisform.InfoControl)
  try && Just in case
    thisform.InfoControl.Value = lnMyCalculation
    thisform.InfoControl.Refresh()
  catch
    * Some error
  endtry
endif
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform