V4RB b9 uploaded

Ruslan Zasukhin sunshine at public.kherson.ua
Thu Jul 22 22:23:00 CDT 2004


On 7/22/04 9:59 PM, "jda" <jda at his.com> wrote:

>>>  I'm also having some problem saving and retrieving
>>>  some data in my Preferences database -- once I track that down I'll
>>>  get back to you (off-list).
>> 
>> Ok, btw, I did not test your prefs window.
>> 
> 
> I think I see the problem.
> 
> In 1.x I passed a variant to Valentina, which was clever enough to
> figure it out:
> 
> prefsDB.prefs.Field(fldToUpdate).SetString(updateInfo) //updateInfo
> is a variant

And this have work in 1.x ???!!

1.x never have use variants, only in 2.0 I have add them.

May be REALbasic self have convert to String ?


> Now, when I pass it a string of numbers, it seems to store only half
> the data, each byte being preceded by a null byte (I assume it's
> UTF-16).
> 
> So, in 2.0, do I need to convert the variant to it's correct type
> before storing it in a Valentina database? Or is this something
> you'll be fixing (it's convenient, of course, to have Valentina do
> the conversion for you, but easy to work around if you're not going
> to change the current 2.x behavior).

I think this can be fixed.

On the other hand, function SetString() is declared as
    excepting String parameter!

I need look on this later.

If you correct this then it works ?

-- 
Best regards,
Ruslan Zasukhin      [ I feel the need...the need for speed ]
-------------------------------------------------------------
e-mail: ruslan at paradigmasoft.com
web: http://www.paradigmasoft.com

To subscribe to the Valentina mail list go to:
http://lists.macserve.net/mailman/listinfo/valentina
-------------------------------------------------------------



More information about the Valentina-beta mailing list