Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating an integer field in SQL Select
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01036396
Message ID:
01036399
Views:
8
>I am creating a work cursor using SQL Select on .DBF Tables with readwrite. I would like to add an intiger field that will be used later to hold some stuff.
>
>There are two ways that I know of:
>
>1. Create a one record cursor with an intiger field before I call the SQL Sel and reference it like we always have to create memo fields.
>
>2. Include "000000000 as myint" in the Select.
>
>The problem, of course, is that #2 actually creates a numeric field.
>I was wondering if there is any new way in VFP 8.0 or 9.0 that I haven't found???
>TIA

In VFP8 only 1. will create integer field. In VFP9 there's new CAST() function
..., CAST(0 AS int) AS myint, ...
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform