Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Two grids on a form
Message
From
25/11/2004 08:53:07
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
25/11/2004 08:41:36
Reza Meamar
Homa Programming Group
Shiraz, Iran
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows '98
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00964600
Message ID:
00964670
Views:
7
>Dear Cetin
>Here is my code :
>
>
>CursorTemp="_"+SUBSTR(SYS(2015), 4)
>
>
>so i make my records in CursorTemp. it must filled with selected recordes from 14 tables.
>
>
>*** Grid1
>thisform.grid1.recordsource = CursorTemp
>thisform.grid1.column1.controlsource = CursorTemp + ".a_cat"
>thisform.grid1.column2.controlsource = CursorTemp + ".selfield"   && Selectable Field  (.T.)
>
>
>*** Grid2
>thisform.grid2.recordsource = CursorTemp
>thisform.grid2.column1.controlsource = CursorTemp + ".a_cat"
>thisform.grid2.column2.controlsource = CursorTemp + ".selfield"    && Selectable Field  (.F.)
>
>
>can you make correct code for me?
>Thanks
*** Grid1.init
with this
 .RecordsourceType = 4
 .recordsource = "select a_cat, selfield from CursorTemp where selfield into cursor crsTrue"
endwith
*** Grid2.init
with this
 .RecordsourceType = 4
 .recordsource = "select a_cat, selfield from CursorTemp where !selfield into cursor crsFalse"
endwith
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
Next
Reply
Map
View

Click here to load this message in the networking platform