SetStandardStyle(GBSEDIT)

Public support forum for peer to peer support with related to the Visual Objects and Vulcan.NET products
Post Reply
dododo01
Posts: 6
Joined: Thu Jan 18, 2024 9:23 am
Location: FRANCE

SetStandardStyle(GBSEDIT)

Post 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.
ic2
Posts: 1841
Joined: Sun Feb 28, 2016 11:30 pm
Location: Holland

Re: SetStandardStyle(GBSEDIT)

Post 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 367 times

Dick
User avatar
Chris
Posts: 4725
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

Re: SetStandardStyle(GBSEDIT)

Post 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.
Chris Pyrgas

XSharp Development Team
chris(at)xsharp.eu
dododo01
Posts: 6
Joined: Thu Jan 18, 2024 9:23 am
Location: FRANCE

Re: SetStandardStyle(GBSEDIT)

Post by dododo01 »

by adding the cato dlls, it works.
thanks.
Post Reply