Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Help with error 31

79 views
Skip to first unread message

Kuno Egger

unread,
May 10, 2013, 3:01:35 PM5/10/13
to
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

Urs Eggmann

unread,
May 10, 2013, 3:31:02 PM5/10/13
to
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" <ku...@retailsoftware.com> schrieb im Newsbeitrag
news:5ff558b1-a4fc-4a2f...@googlegroups.com...

richard.townsendrose

unread,
May 12, 2013, 5:23:37 AM5/12/13
to
Kuno

seems like you have to link the server to the window BEFORE the bbrowser.

why dont you read a record into a barrayserver, and use that on the window ?

means that you have to save if changed - but much safer on cancel

richard
0 new messages