xsharp.eu • SetStandardStyle(GBSEDIT)
Page 1 of 1

SetStandardStyle(GBSEDIT)

Posted: Wed Jul 10, 2024 12:14 pm
by dododo01
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.

Re: SetStandardStyle(GBSEDIT)

Posted: Wed Jul 10, 2024 8:58 pm
by ic2
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

Code: Select all

oColumn:SetStandardStyle( GBSREADONLY )
So I checked and added

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:
DBVIncludes.jpg
DBVIncludes.jpg (21.45 KiB) Viewed 564 times

Dick

Re: SetStandardStyle(GBSEDIT)

Posted: Wed Jul 10, 2024 10:41 pm
by Chris
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.

Re: SetStandardStyle(GBSEDIT)

Posted: Fri Jul 12, 2024 7:35 am
by dododo01
by adding the cato dlls, it works.
thanks.