Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Referencing something wrong?
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Referencing something wrong?
Miscellaneous
Thread ID:
00191601
Message ID:
00191601
Views:
54
I have a problem, and not sure why it isn't working completely.
I have a pageframe with 6 pages. I have a option box which appears on each page which has different filters for each option. I then have a print button which brings up a new form which is my print box. The print box has check boxes for which reports on the different pages need to be printed.

the cmdprint button code on each page is:
do form 'c:\Pjct1\forms\frmprtpmpt' with thisform
thisform.release


I have a property called owhocalled on the print box form.

the cmdprint button code for the print box form is:

mcopies=THISFORM.spncopies.VALUE
IF THISFORM.check1.VALUE=1
DO CASE
CASE THISFORM.owhocalled.pageframe1.page1.optiongroup2.VALUE=1
set filter to trackscus.cstatus='NEW'
CASE THISFORM.owhocalled.pageframe1.page1.optiongroup2.VALUE=2
set filter to trackscus.cstatus='USED'
CASE THISFORM.owhocalled.pageframe1.page1.optiongroup2.VALUE=3
set filter to trackscus.cstatus='UNAVAILABLE'
OTHE
set filt to
ENDC
FOR mctr=1 TO mcopies
REPO FORM "c:\offshore\reports\rptTRACKcus" TO PRIN
ENDFOR
ENDIF
select tracksrent
IF THISFORM.check2.VALUE=1
DO CASE
CASE THISFORM.owhocalled.pageframe1.page2.optiongroup2.VALUE=1
set filter to tracksrent.cstatus='NEW'
CASE THISFORM.owhocalled.pageframe1.page2.optiongroup2.VALUE=2
set filter to tracksrent.cstatus='USED'
CASE THISFORM.owhocalled.pageframe1.page2.optiongroup2.VALUE=3
set filter to tracksrent.cstatus='UNAVAILABLE'
OTHE
set filt to
ENDC
FOR mctr=1 TO mcopies
REPO FORM "c:\offshore\reports\rptTRACKitem" TO PRIN
ENDFOR
ENDIF

I change the check# on the if statements and the number pages, and for the consecutive checks.
The problem I have is this works on the 1st page only, but not on the other pages. I get an error: Unknown member OWHOCALLED.
What am I doing wrong? The purpose of the printbox is to be able to call it up from any page, and print 1 or more of the reports. Each page has a different secondary.

TIA
Jim
Next
Reply
Map
View

Click here to load this message in the networking platform