I am trying to get data from grid with different window,
in the same window no problem
but if i get from main window from child window it doesn't work
------------------------------------------------------------*
Function VerItem(nvalue)
*--------------------------------------------------------------*
Local creg1 := ""
Local creg2 := ""
creg1 := GetColValue( "Grid_1", "Win_1", 1 )
creg2 := GetColValue( "Grid_1", "Win_1", 2 )
msginfo(creg1+ " dan "+ creg2)
//MsgInfo( 'Col 1: ' + GetColValue( "Grid_1", "Win_1", 1 )+' ';
// + 'Col 2: ' + GetColValue( "Grid_1", "Win_1", 2 ) )
Return creg1
*--------------------------------------------------------------*
Function GetColValue( xObj, xForm, nCol )
*--------------------------------------------------------------*
Local nPos:= GetProperty(xForm, xObj, 'Value')
Local aRet:= GetProperty(xForm, xObj, 'Item', nPos)
Return aRet[nCol]
*--------------------------------------------------------------*
Function SetColValue( xObj, xForm, nCol, xValue )
*--------------------------------------------------------------*
Local nPos:= GetProperty(xForm, xObj, 'Value')
Local aRet:= GetProperty(xForm, xObj, 'Item', nPos)
aRet[nCol] := xValue
SetProperty(xForm, xObj, 'Item', nPos, aRet)
Return NIL
From maiin window ( different window ) main
240,180 btntextbox text_1
action veritem ()
Not result
but in the same window ( child )
Its OK
Can anyone help me
Thanks for support , attention and help
BR
SPD
Thanks for the advice and example program ,
yes, i was inspired by fastfind
i want to get data in win_1.grid_1 from main window
I have tried your sample and I tested the veritem function and it did not produce any results.
--
Visit our website on https://www.hmgextended.com/ or https://www.hmgextended.org/
---
You received this message because you are subscribed to the Google Groups "Harbour Minigui" group.
To unsubscribe from this group and stop receiving emails from it, send an email to minigui-foru...@googlegroups.com.
To view this discussion, visit https://groups.google.com/d/msgid/minigui-forum/d7d90af4-ef0a-4218-8948-cd50125511ben%40googlegroups.com.