Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Nullable fields in SELECT...READWRITE cursor?
Message
From
19/07/2005 20:17:21
 
 
To
19/07/2005 16:04:20
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 2000 Server
Database:
MySQL
Miscellaneous
Thread ID:
01033998
Message ID:
01034068
Views:
17
Hi Russ.

Probably the quickest way is to create a cursor with a structure that matches your intended Select results, only with all the fields set to allow Nulls and them stick
union select * from FixStructure
into your select (assuming that you called the cursor FixStructure. Now when Fox gathers the structure information it will now that the output fields need to be able to hold Null, and because the FixStructure cursor is empty there isn't any extra data overhead like you would get if you tried to process the result and add Null support later.

Ian Simcock.




>I am trying to use a select statement to create an empty cursor into which I can write data, like:
>
>Select blah, blahh, blahhh FROM blaaaah INTO CURSOR myCursor READWRITE
>
>Unfortunately, I need the fields in the resulting cursor to accept nulls, which they do not. How can I make these fields accept nulls?
>
>TIA
>
>Russ
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform