Some warnings and error

This forum is meant for questions and discussions about the X# language and tools
User avatar
Chris
Posts: 4906
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

Some warnings and error

Post by Chris »

Yeah, very glad to hear!

Chris
Chris Pyrgas

XSharp Development Team
chris(at)xsharp.eu
User avatar
Horst
Posts: 336
Joined: Tue Oct 13, 2015 3:27 pm

Some warnings and error

Post 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
User avatar
wriedmann
Posts: 3755
Joined: Mon Nov 02, 2015 5:07 pm
Location: Italy

Some warnings and error

Post 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
Wolfgang Riedmann
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
User avatar
Horst
Posts: 336
Joined: Tue Oct 13, 2015 3:27 pm

Some warnings and error

Post by Horst »

Upps

your right.

:-)
User avatar
Horst
Posts: 336
Joined: Tue Oct 13, 2015 3:27 pm

Some warnings and error

Post 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
FFF
Posts: 1580
Joined: Fri Sep 25, 2015 4:52 pm
Location: Germany

Some warnings and error

Post by FFF »

Horst,
what ist the return of SELF:odbUserOnline:SetOrder (1) ?

K.
Regards
Karl
(on Win8.1/64, Xide32 2.20, X#2.20.0.3)
User avatar
Horst
Posts: 336
Joined: Tue Oct 13, 2015 3:27 pm

Some warnings and error

Post 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

:-(
FFF
Posts: 1580
Joined: Fri Sep 25, 2015 4:52 pm
Location: Germany

Some warnings and error

Post 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.
Regards
Karl
(on Win8.1/64, Xide32 2.20, X#2.20.0.3)
Karl-Heinz
Posts: 774
Joined: Wed May 17, 2017 8:50 am
Location: Germany

Some warnings and error

Post 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
User avatar
Horst
Posts: 336
Joined: Tue Oct 13, 2015 3:27 pm

Some warnings and error

Post 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
Post Reply