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


Groups > comp.lang.clipper.visual-objects > #5219 > unrolled thread

Help with error 31

Started byKuno Egger <kuno@retailsoftware.com>
First post2013-05-10 12:01 -0700
Last post2013-05-12 02:23 -0700
Articles 3 — 3 participants

Back to article view | Back to comp.lang.clipper.visual-objects


Contents

  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

#5219 — Help with error 31

FromKuno Egger <kuno@retailsoftware.com>
Date2013-05-10 12:01 -0700
SubjectHelp with error 31
Message-ID<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

[toc] | [next] | [standalone]


#5220

From"Urs Eggmann" <Urs.Eggmann@shinternet.ch>
Date2013-05-10 21:31 +0200
Message-ID<av50gaFk477U1@mid.individual.net>
In reply to#5219
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 

[toc] | [prev] | [next] | [standalone]


#5224

From"richard.townsendrose" <richard.townsendrose@gmail.com>
Date2013-05-12 02:23 -0700
Message-ID<e7ee7a8b-7322-4bab-a647-ff7ef3a5cd6b@googlegroups.com>
In reply to#5219
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

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.clipper.visual-objects


csiph-web