Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting specific column, activerow of grid
Message
De
28/11/2001 10:24:41
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
28/11/2001 10:14:21
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00586953
Message ID:
00586967
Vues:
23
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform