i use following code to restore my datacolumns in a standard databrowser :
IF SELF:oDataServer != NULL_OBJECT
SELF:__BuildRecordDescription()
SELF:__RefreshBuffer()
ENDIF
SELF:RestoreUpdate()
IF ! lOwnDataBrowserCaptions
FOR nRow := 1 TO SELF:ColumnCount // in this Line i get sometimes a
5333
IF Empty( SELF:GetColumn(nRow):BlockOwner )
IF ! Empty(SELF:GetColumn(nRow):FieldSpec:Hyperlabel:Caption )
SELF:GetColumn(nRow):Caption :=
SELF:GetColumn(nRow):FieldSpec:HyperLabel:Caption
ENDIF
ENDIF
NEXT
ENDIF
could you see the mistake ?
thanks !
Mario
--
concept Software
Mario Schulz
Rehhorster Straße 8
23619 Zarpen
Tel.: 04533 / 79 89 89
Fax.: 04533 / 79 83 00
What version of CAVO are you using?
> IF SELF:oDataServer != NULL_OBJECT
> SELF:__BuildRecordDescription()
> SELF:__RefreshBuffer()
> ENDIF
No - don't do this. Do you have the SDK? It will be clear why if you have.
Simply issue Skip(0) on the server.
This will give you the desired effect.
(which you can also confirm with the SDK)
Geoff
i change the code to SELF:oDataServer:Skip(0) and SELF:Refresh()... i dont
have the SDK.. why i cannot use _BuildrecordDescription() ??
thanks !
Mario
"Geoff Schaller" <geof...@bigpond.net.au> schrieb im Newsbeitrag
news:LnO78.37717$Ni2.2...@news-server.bigpond.net.au...
i use 25b3...why ?
bye,
Mario
"Malcolm Gray" <malcol...@jobstream.co.uk> schrieb im Newsbeitrag
news:8AN78.6$6X.414@psinet-eu-nl...
25b2 included some important fixes for memory corruption that
could cause strange 5333s
It may sound strange, but try UPTO instead of TO in the FOR statement
I had some 5333 also until I did replace the TO, I don't know why
Rens
Is not a method of DBServer or DataServer so I presume its one of your own.
From its name I presume it re-reads field info and why should you do this?
What other initialisations are you causing?
Just use Skip(0) - its all you need.
Geoff
"Mario Schulz" <sch...@saninet.de> wrote in message
news:a3otoh$2au$2...@wrath.news.nacamar.de...
thanks !
bye,
mario
"Rens" <ren...@RemoveThis.wish.net> schrieb im Newsbeitrag
news:a3p54n$agm$1...@news1.xs4all.nl...
if i only use SKIP(0) i have a problem display the datafields in right
way... if the databrowser is on a tabpage some columns have no value ....
bye,
Mario
"Geoff Schaller" <geof...@bigpond.net.au> schrieb im Newsbeitrag
news:LnO78.37717$Ni2.2...@news-server.bigpond.net.au...
"Mario Schulz" <sch...@saninet.de> wrote in message
news:a3r390$rlq$2...@wrath.news.nacamar.de...