General information
Category:
Forms & Form designer
This may help:
1. As a rule, the form name /...NAME MyForm / should be the very same as in the Form caption
2. declare private cmyVar in the program and assign a value before calling the form or
declare a GLOBAL variabile instead of private
PUBLIC cmyVar
Best Wishes
>Please, can you explain why if I run a report on the valid(or click) event of a command button of a form, the report display unknown member for the values of diferent object of the form?
>The command button doesn't have the TerminateRead .t.
>The WindowType is 1
>In the report's field, I typed MyForm.myVar.value
>If I say "MODI REPO REPNAME" I can view my values .
>I declared PUBLIC MYFORM in the program from where the form is called.
>I tried the command ---DO FORM "MYFORM.SCX" NAME MyForm LINKED--- and also without LINKED.
>If I use LINKED and the command REPORT FORM MyReport, after the error "unknown member" in the report, the form is released.But, when I say "MODI REPO REPNAME", it turns back to the form.
>I even tried to declare a private variabile
> PRIVATE cmyVar
> cmyVar=MyForm.myVar.value
>and then I've put it on the report, but the report didn't recognised it.
>-> "variable cmyVar not found"
>
>I placed in the buttons method that I use Public decalaration of myform and a myform = thisform , but still nothing.
>Can anybody help me?
>Thank you.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only