SetStandardStyle(GBSEDIT)
Posted: Wed Jul 10, 2024 12:14 pm
Hi,
after VO migration to X#, I cannot put my datawindow:browser in edit mode, via datawindow:browser:setstandardstyle(GSEDIT).
oDW is a datawindow.
oDW:Use(oServer)
oDW:ViewTable()
FOR ii:=1 TO oDW:Browser:ColumnCount
IF oServer:dbstruct[ii, 3] < Len(AllTrim(oDW:Browser:Getcolumn(ii):Caption))
oDW:Browser:GetColumn(ii):Width := Len(AllTrim(oDW:Browser:Getcolumn(ii):Caption))
ENDIF
oDW:Browser:GetColumn(ii):Width += 4
NEXT ii
oDW:Browser:SetStandardStyle(GBSEDIT)
Description : No exported method 'SETSTANDARDSTYLE'
Subsystem : BASE
GenCode : EG_NOMETHOD No exported method
FuncSym : __InternalSend
Severity : ES_ERROR
Can Default : False
Can Retry : False
Can Substitute : False
Argument Number : 2
Argument : cMethod
Arguments : {VO.DataListView,SETSTANDARDSTYLE,XSharp.__Usual[]}
does anyone have a solution?
THANKS.
Dominique.
after VO migration to X#, I cannot put my datawindow:browser in edit mode, via datawindow:browser:setstandardstyle(GSEDIT).
oDW is a datawindow.
oDW:Use(oServer)
oDW:ViewTable()
FOR ii:=1 TO oDW:Browser:ColumnCount
IF oServer:dbstruct[ii, 3] < Len(AllTrim(oDW:Browser:Getcolumn(ii):Caption))
oDW:Browser:GetColumn(ii):Width := Len(AllTrim(oDW:Browser:Getcolumn(ii):Caption))
ENDIF
oDW:Browser:GetColumn(ii):Width += 4
NEXT ii
oDW:Browser:SetStandardStyle(GBSEDIT)
Description : No exported method 'SETSTANDARDSTYLE'
Subsystem : BASE
GenCode : EG_NOMETHOD No exported method
FuncSym : __InternalSend
Severity : ES_ERROR
Can Default : False
Can Retry : False
Can Substitute : False
Argument Number : 2
Argument : cMethod
Arguments : {VO.DataListView,SETSTANDARDSTYLE,XSharp.__Usual[]}
does anyone have a solution?
THANKS.
Dominique.