Open Database on Server
Bart Pietercil
bart.pietercil at gmail.com
Tue Oct 30 13:26:34 CDT 2007
Hi Beatrix,
I think you are missing the point of mine and Ruslans answer.
(Of course maybe we are missing your point :-))
The methods I sent you work with a VServer that can be on the same
machine or on the internet. I am sure they work as I use them on a
daily basis.
Let me reiterate the way to connect to a server:
1) you setup a connection for the VDatabase object. This is the
"path" to the database.
So in pseudo code
x = new VConnection(all paramaters for the connection)
x.Open
if x.IsConnected then
VDatabase(x)-----> passing the path to the new instance of VDatabase,
now VDatabase knows where to send the open command. It has a "path"
dim f as folderitem
f = GetFolderItem("name of the db you want to open on VServer")--->
this has nothing to do with the regular use of a folderitem, it is
(for a VServer) just a method that is concurrent with what you do
when talking to a local database
VDatabase.Open(f)----> Since VDatabase has a Connection (x) he will
send the open(f) command to the VServer that is connected.
Hmm, hope this makes more sense now
Bart
On 30-okt-07, at 18:09, Beatrix Willius wrote:
> Hi Bart,
>
> thanks for the code (despite the flu).
>
> Am 29 Oct 2007 um 21:49 schrieb Bart Pietercil
> <bart.pietercil at gmail.com>:
>
>> And then a call to this
>>
>> Function OpenServerDB(DBName As String) As Boolean
>> Dim f As FolderItem
>>
>> f = GetFolderItem(DBName)
>> Try
>> Open(f)
>> Return True
>> Catch Err as VException
>> MsgBox("Error while Opening ServerDB: " + Err.Message)
>> Return False
>> end Try
>> End Function
>
> This can only work, when the application resides in the same folder
> as the database and this is never the case.
>
>
>
> Rusland wrote:
>
>> Note that all V4RB Examples can work in client/server mode.
>>
>> For this only require switch flag
>> gClient = true
>>
>> Read more in V4RB / Docs / Example Guide.
>
> Ruslan, you are a great programmer, but your manuals are very sub-
> optimal. The examples for ADK have a valid folderitem. And the
> examples for the server don't open a database! So please: how do I
> obtain a valid folderitem to open a server database when I only
> have an IP address.
>
> Anyone? What am I missing?
>
>
>
>
>
>
> Mit freundlichen Grüßen/Regards
>
> Trixi Willius
>
> http://www.mothsoftware.com
> Mail Archiver X: archive, clean and search email
> http://www.beatrixwillius.de
> Fractals, 3d landscapes etc.
>
> _______________________________________________
> Valentina mailing list
> Valentina at lists.macserve.net
> http://lists.macserve.net/mailman/listinfo/valentina
More information about the Valentina
mailing list