Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating a Logical with SQL
Message
From
01/05/1998 06:23:28
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00096152
Message ID:
00096225
Views:
12
>>I am populating a grid with a Cursor and I need a logical field returned from a select to use as one of the grid columns control Controlsource. For example, to create a Char field with 5 spaces in a sql statement I use --> space(5), a date field {}, but I can't remember how to create a logical field from a SQL statement. Any help appreciated!
>>
>>Thanks.
>
>NEVER MIND!!!! I have it...it's a tuff one .T., .F. Sorry for jumping the gun here!!!
>
>John
I knew you would find it in seconds. If you're doing this to insert a new empty record via SQL this tip could shorten your coding :
insert into mycursor (anyfieldtypeknown) values (emptyvalue)
*or
scatter memvar blank
insert into mycursor from memvar
Rest will be all empty values also (default .f. for logicals).
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform