>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
thisform.InfoControl.Value = lnMyCalculation
thisform.InfoControl.Refresh()
catch
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