Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Variable MYFIELD is not found problem
Message
 
 
To
24/05/2008 08:36:17
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01319336
Message ID:
01319346
Views:
12
Thank you, Craig.

I found that the problem was that in the Activate method of the form from which the report is called has a code to "SELECT (SomeOtherAlias)". And, I guess, right before the report is displayed this method fires. I am surprised as I thought that the form will be in focus after the report is closed. Anyway, since I know what causes the problem, I will find a way to deal with it.

UPDATE: I found that the problem with focus and Activate method was caused by my BROWSE command that I was using right before calling the report to verify that the "right" cursor was selected.

>There could be a cursor created in the report or a report field has reference to the other cursor. The easiest way to track this down is to create the cursor, then open the report in the report designer then preview the report. The error will popup and point right to the report field.
>
>>Hi,
>>
>>I am getting a strange error when running a report. The error say (as in the title of this message) 'variable "myfield" is not found.' I check the cursor right before running the report and the column "myfield" is there. I don't know if it matters but this column is a JOIN table column. Nevertheless the column is found and is in the cursor.
>>
>>Any suggestions to what might be causing this error?
>>
>>UPDATE: I found that it seems like report pulls the data not from the cursor selected right before report but from another cursor. How can it be?
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Reply
Map
View

Click here to load this message in the networking platform