[V4Rb 2] Constructor overriding problem
Ruslan Zasukhin
sunshine at public.kherson.ua
Fri Jun 3 20:47:46 CDT 2005
On 6/3/05 8:12 PM, "Charles Yeomans" <yeomans at desuetude.com> wrote:
>>>>> Super.VDatabase(inHost as String, inUserName as String,
>>>>> inUserPassword as String, inPort as Integer=15432, inTimeOut as
>>>>> Integer=60, inOptions as String="")
>>>>
>>>> Of if just
>>>>
>>>> VDatabase
>>>>
>>>> ?
>>>
>>> I don't understand. I can call Super.VDatabase(inStorageType). It is
>>> the second constructor that cannot be called.
>>
>> Have you try without word Super ?
>>
>> In our examples it seems we write just VDaatbase
>
> I looked at the example. This worked for me--
>
> Super.VDatabase(inHost, inUserName, inUserPassword)
>
> but this did not--
>
> Super.VDatabase(inHost, inUserName, inUserPassword, inPort as
> Integer=15432, inTimeOut as Integer=60, inOptions as String="")
But why you write here default parameters ?
This is wrong. You do call of function, default params can be specified only
when you declare function.
> And the following constructor does not work.
>
> db = new VDatabase(DBHost, w.UserName, w.UserPassword, 15432, 60, "")
--
Best regards,
Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc
Valentina - Joining Worlds of Information
http://www.paradigmasoft.com
[I feel the need: the need for speed]
More information about the Valentina
mailing list