Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting specific column, activerow of grid
Message
From
28/11/2001 10:24:41
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
28/11/2001 10:14:21
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00586953
Message ID:
00586967
Views:
22
This message has been marked as a message which has helped to the initial question of the thread.
>In the following construct, how does one specify that the value in colmun8 comes from the active row of the grid?
>
>FOR i = 1 TO _screen.formcount
> IF UPPER(ALLTRIM(_screen.forms[i].name))='WRK2'
> _myvalue = ALLTRIM(UPPER(thisform.grdResult.Column8.text1.value))
> ENDIF
>ENDFOR
>
>As grdResult may contain multiple rows, I need to have _myvalue come from the activerow. Currently I am getting the last row's value.
>
>Any help appreciated.
>
>Andrew

Andrew,
FWIW directly use alias.fieldname. ie:
_myvalue = ALLTRIM(UPPER(eval(thisform.grdResult.Column8.controlsource)))
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