Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DE
Message
From
03/03/1999 00:17:52
Randy Hooper
Ranco Business Software
Tampa, Florida, United States
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Re: DE
Miscellaneous
Thread ID:
00193448
Message ID:
00193451
Views:
15
>>I would like to take some views out of my DE and use them only when I need them. I took one view out of my DE for a test and I am using this piece of code behind my print button.
>>
>>if not used(viewname)
>> use (viewname) in 0
>>else
>> requery(viewname)
>>endif
>>
>>I am getting the error file does not exist.
>>
>>With out this peice of code and the view in the DE eveything works fine.
>>
>>What I am doing wrong here.
>>
>>Thanks Randy
>
>Is the view name a long name? Is the Database the current DB? If you are using a private Datasession, the SET DATABASE TO is scoped to each private DS. Which means your base form class has to include SET DATABASE TO MYDBC along wiht all the other things scoped to the DS (see VFP help on SET DATASESSION for all the SETs that scope to DS). All you may need to do is change the use command to use mydbc!myviewname

Mark Thanks alot, mydbc!myview did the trick...
Foxpro is a sweet puppy

'cept it barks every now and then =)
Previous
Reply
Map
View

Click here to load this message in the networking platform