[V4MD MAC] throwout and unregister

Peter Salomon peter.salomon at gmx.net
Fri Apr 1 21:56:49 CST 2005


hi ruslan,

It runs really! can now connect to vserver and log file works also. 
wonderful! now i was able to start playing a bit and started to convert 
older 1.x project to 2.x.
and here are todays questions:

throwout()  deletes files in LOCAL mode. In Client mode not - so e.g. 
example runs "only" one time, the second time an error occurs, telling 
that db already exists which is correct.

so i tried a small script:

on unregisterDB
   VServer = new(xtra "Vserver", "localhost", "sa", "sa")
   if not objectP(VServer) then
     beep
     alert "Cannot set reference to VServer Xtra!"
   end if
  if objectP(gDb) then
	gDB.close()
	gDB=void
end if	
   VServer.unregisterDatabase("Database1.vdb")
end

the script gives me the error: ERROR: 394504

can i readout those errormessages via VServer? and how can i get rid of 
registered databases?

regards, Peter


More information about the Valentina mailing list