Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #5220

Re: Help with error 31

From "Urs Eggmann" <Urs.Eggmann@shinternet.ch>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: Help with error 31
Date 2013-05-10 21:31 +0200
Message-ID <av50gaFk477U1@mid.individual.net> (permalink)
References <5ff558b1-a4fc-4a2f-934e-357b5a6880f0@googlegroups.com>

Show all headers | View raw


Hi Kuno,

That works fine here:

SELF:Use(bDBServer{"C:\CAVO2836\Exec\dbf\KUNDEN"})
// DataWin uses old server
SELF:oDCbBrowser1:Use(SELF:Server)
// Browser uses same Server as the owner
SELF:Server:Close()

SELF:Use(bDBServer{"C:\CAVO2836\Exec\dbf\CUSTOMER"})
// DataWin uses new server
SELF:oDCbBrowser1:Use(SELF:Server)
// Browser uses same Server as the owner

regards
Urs

"Kuno Egger" <kuno@retailsoftware.com> schrieb im Newsbeitrag 
news:5ff558b1-a4fc-4a2f-934e-357b5a6880f0@googlegroups.com...
I have a datawindow containing a bBrowser and some individual fields as 
single line edits. All are attached to a DBF so when I click on a row in the 
browser the content of the individual fields changes appropriately. On the 
datawindow is a button that displays a file dialog which allows the user to 
get a different DBF. Once I have the new DBF filename I use the following 
code to change the DbServer:

oOrders:Close()  // close the old order file
oOrders := DbServer{sFileName,TRUE,FALSE} //load the new order file
oDCbBrowser1:Use(oOrders,,AFields)  // attach it to the browser
SELF:Use(oOrders) //attach it to the datawindow

The last line produces the following error:

ERROR CODE 13 (NO EXPORTED METHOD)
SUBSYSTEM: BASE
FUNCTION: SEND
ARGUMENT: BBROWSER_NOTIFYCHANGES

I have tried suspendnotification and suspendupdate and changing the order of 
attaching the DbServer and even re-calling the postinit method to 
re-initialize everything but to no avail.

Any advice would be appreciated.

Kuno 

Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Help with error 31 Kuno Egger <kuno@retailsoftware.com> - 2013-05-10 12:01 -0700
  Re: Help with error 31 "Urs Eggmann" <Urs.Eggmann@shinternet.ch> - 2013-05-10 21:31 +0200
  Re: Help with error 31 "richard.townsendrose" <richard.townsendrose@gmail.com> - 2013-05-12 02:23 -0700

csiph-web