Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to send modal form values to the parent form
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00992593
Message ID:
00992606
Views:
19
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform