xsharp.eu • Some warnings and error - Page 6
Page 6 of 9

Some warnings and error

Posted: Wed Oct 11, 2017 7:23 am
by Chris
Yeah, very glad to hear!

Chris

Some warnings and error

Posted: Wed Oct 11, 2017 10:01 am
by Horst
Hallo

Yeah its runing but it shoud not :-)

oLogFile := LogFile { IDC_FileLog }
oLogFile:dumpError (cMessage)

I found this code inside, but the class Logfile is nowhere in my files. Its in a VO Libary. Why the compiler doesn't complain ? No error and no warnings.

Horst

Some warnings and error

Posted: Wed Oct 11, 2017 10:06 am
by wriedmann
Hi Horst,

why it should complain? This class is defined in the VO libraries, and therefore it should also be in the Vulcan Internet Classes.

Wolfgang

Some warnings and error

Posted: Wed Oct 11, 2017 12:57 pm
by Horst
Upps

your right.

:-)

Some warnings and error

Posted: Sat Oct 14, 2017 8:59 am
by Horst
Hi

I open a DBF but i cant SEEK. Is there a different from Vulcan to VO ? The Index looks not be open.

SELF:odbUserOnline:= dbServer {myWorkDir ()+IDC_PathDbfSys+"UserOnline.dbf",TRUE,FALSE,"DBFCDX"}

SELF:odbUserOnline:createorder ("Username",,"Upper (Username)" ,{|| Upper (_field->Username)},.f.)

the order will be created and when i open it with dbalite its looks ok

SELF:odbUserOnline:SetOrder (1)
// Test
self:odbUserOnline:GoTop()
do while ! self:odbUserOnline:EoF
myerr (self:odbUserOnline:fieldget (#Username))
self:odbUserOnline:Skip()
enddo
but this test writes the names unsorted and a seek is not working

Horst

Some warnings and error

Posted: Sat Oct 14, 2017 9:51 am
by FFF
Horst,
what ist the return of SELF:odbUserOnline:SetOrder (1) ?

K.

Some warnings and error

Posted: Sat Oct 14, 2017 10:14 am
by Horst
Hi Karl

its false

its a IIS thing i think, because when i make a normal test applikation the index works fine.

if i cant fix that , i have to stop with x# and goining back to VO

:-(

Some warnings and error

Posted: Sat Oct 14, 2017 10:31 am
by FFF
Hmm, have no experience with IIS, but if your are right and it is "its" problem, why should Vo work and X# not? At least, i'd expect X# not to work at all...

K.

Some warnings and error

Posted: Sat Oct 14, 2017 10:40 am
by Karl-Heinz
Hi Horst,

seems, though your cdx filename is "UserOnline.cdx" the file isn´t opened automatically. What is your rddinfo ( _SET_AUTOOPEN) setting ?

[...]

_SET_AUTOOPEN

Returns and optionally changes the logical flag that determines whether the RDD will
open production indexes automatically when a database file is opened. A TRUE setting indicates that the production index is opened automatically.

[...]

if the flag isn´t set to true you must open the cdx manually:

oDb:Setindex( <cdxFile> )
oDB:SetOrder ( 1 )

BTW. Whereby i prefer to set the order by name and not by number.

regards
Karl-Heinz

Some warnings and error

Posted: Sat Oct 14, 2017 12:43 pm
by Horst
Hallo Karl's :-)

I tried to open the index with

if SELF:odbUserOnline:SetIndex (myWorkDir ()+ IDC_PathDbfSys + "UserOnline.cdx")

its also false

i tried also open the DB with DBUseArea (without DBServer) , still no index.

Horst