Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
View with NODATA on Load produces no records after REQUE
Message
From
26/05/2006 08:57:39
 
 
To
08/05/2006 18:11:10
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 7
OS:
Windows 2000
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01117647
Message ID:
01125222
Views:
15
Hello Aleksey,
I am sorry for such a delay with reply. The mystery has been solved even though I expected FoxPro to act a little bit differently. The problem was that one of the character fields from one of the joined tables was created wrong in case it would be .NULL. NVL() function was used but rather then PAD() the outcome to the maximum length of the field I used I made it "". So the if the first hit was .NULL. the field was created with 0 length and this caused view generated an error(REQUERY returned -1) while requering and the view was empty, not because there were no data but because FoxPro couldn't requery. Frankly, I expected FoxPro give me an error "View definition has been changed" which we use to have before in similar situation with other views. For some reason it didn't do it this time. As soon as I padded the field to the max length, view started working fine.
That's all it was,
I appreciate your help, thanks a lot.
Igor
Previous
Reply
Map
View

Click here to load this message in the networking platform