Beginners RB Valentia Question

Todd Fantz tfantz at mindspring.com
Mon Sep 17 12:23:33 CDT 2007


Thanks for the quick response.

The RBdatabase does have host, but it doesn't have port, so I don't  
know how to direct it at the Valentia server. The included example in  
valentia only connects to a disk based database.

So, I guess this is purely an RB database API question, but how do I  
specify the port?

Thanks,

tf


On Sep 17, 2007, at 10:51 AM, Ruslan Zasukhin wrote:

> On 17/9/07 5:44 PM, "Ruslan Zasukhin" <sunshine at public.kherson.ua>  
> wrote:
>
>> On 16/9/07 10:11 PM, "Todd Fantz" <tfantz at mindspring.com> wrote:
>>
>> Hi Todd,
>>
>>> Howdy,
>>>
>>> I am porting a Realbasic app from MySQL to Valentia. This is my  
>>> first
>>> project using Valentia. So that I have to change the least amount of
>>> code (at least at first)
>>
>>> I would like to use the VRBDatabase classes,  which I gather uses  
>>> the RB DB
>>> API, but I can't figure out how to  specify a connection to a  
>>> server.
>>
>>> I understand how to use the  VConnection with the VDatabase  
>>> object, but the
>>> VRBDatabase object  does not have the necessary host properties,  
>>> nor can I
>>> seem to attach  it to a VConnect object. Can anyone post a simple  
>>> connection
>>> sequence  to a server using VRBDatabase?
>>
>> I will check now our example
>
> Okay I see now.
>
> 1)
>
> Please note that VRBDatabase class is subclass of Database class of
> REALbasic. So it inherits all its properties and methods.
>
> In particular properties Host, UserName, Password.
> You can see them even in the auto-completion menu.
>
> 2) also note that RBDB API means that all dbs will have similar code.
>     I'd say THE SAME in ideal.
>
> So you need just read docs/help/examples of REALbasic itself about  
> RBDB API.



More information about the Valentina mailing list