Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid
Message
From
07/04/2008 03:11:47
 
 
To
07/04/2008 03:00:27
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Re: Grid
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01308640
Message ID:
01308646
Views:
11
yes,
SET DELETED  on
SELECT TAlias1.employeeid,TAlias2.nam,TAlias2.nam4,TAlias1.workdays,TAlias1.absencewp,TAlias1.absencew,TAlias1.uovertimeh,TAlias1.whovertime,TAlias1.vacations,TAlias1.sickvacati,TAlias2.wark  ;
 FROM payroll TAlias1, mstr TAlias2 ;
 WHERE  TAlias1.employeeid = TAlias2.no ;
  ORDER BY employeeid ;
  INTO cursor  mycur readwrite

COUNT TO thisform.text2.value

       thisform.Grid1.RecordSource=" mycur"  
         thisform.Grid1.refresh()
**at thisform.Grid1 event afterrowcolchange&&
thisform.text1.Value=thisform.grid1.column1.text1.value
thisform.text3.Value=thisform.grid1.column11.text1.value
thisform.text4.Value=thisform.grid1.column4.text1.value



>If the grid takes it data directly from a table or cursor, it's much easier to read the values from the table or cursor.
>
>>hi all,
>>
>>i try this code at mygrid via afterrowcolchange i see only the result when i move to grid.field not as one record,
>>
>>**afterrowcolchange
>>thisform.text1.Value=thisform.grid1.column1.text1.value
>>thisform.text3.Value=thisform.grid1.column11.text1.value
>>thisform.text4.Value=thisform.grid1.column4.text1.value
>>
>>thanks
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform