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.
SetStandardStyle(GBSEDIT)
Re: SetStandardStyle(GBSEDIT)
Hello Dominique,
I have 1 converted VO program using the databrowser (I would strongly recommend to use bBrowser instead - which is in my planning for this program as well) and I use
So I checked and added
Both compile.
Maybe you are missing something in the References? This is what I have in the full program:
Dick
I have 1 converted VO program using the databrowser (I would strongly recommend to use bBrowser instead - which is in my planning for this program as well) and I use
Code: Select all
oColumn:SetStandardStyle( GBSREADONLY )
Code: Select all
SELF:Browser:SetStandardStyle( GBSREADONLY )
Both compile.
Maybe you are missing something in the References? This is what I have in the full program:
Dick
Re: SetStandardStyle(GBSEDIT)
Hi Dominique,
This happens because the app cannot find the DataBrowser dlls, so reverts to using the DataListView control, instead of the DataBrowser (noticed that in the last line of your error message). To fix this, simply copy all the CATO*.* dll files from your VO \Bin fodler, to the folder where you have your X# app exe.
This happens because the app cannot find the DataBrowser dlls, so reverts to using the DataListView control, instead of the DataBrowser (noticed that in the last line of your error message). To fix this, simply copy all the CATO*.* dll files from your VO \Bin fodler, to the folder where you have your X# app exe.
Chris Pyrgas
XSharp Development Team
chris(at)xsharp.eu
XSharp Development Team
chris(at)xsharp.eu
Re: SetStandardStyle(GBSEDIT)
by adding the cato dlls, it works.
thanks.
thanks.