Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Local View doesn't return row
Message
From
19/01/2006 16:35:25
Steve Summers
Pima County Superior Court
Tucson, Arizona, United States
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01088535
Message ID:
01088674
Views:
20
>>During design, view works great. At runtime, the view returns no data. This must be an environment setting? Here is the code:
>>
>>If ! Used("View1")
>> Use View1 In 0 Nodata
>>Endif
>>Select View1
>>vwClassID = This.IDKEY
>>Requery()
>>
>>Any ideas?
>
>It returns no data because your code tells it not to return data but only create the structure. That is what NODATA keyword does on the USE statement.

Greetings Jim and thanks for your reply.
The View is a parameters view and uses the variable vwClassID. Shouldn't the requery() statement cause to view to fill?

I have done some testing since this post. The code works great when I test the class by it's self. This makes me think it’s an environment issue. This project was a VFP6 project and I'm updating it to VFP9.
Thanks in advance or I hope this helps!

[STS]
:>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform