Am I too old to learn Valentina?

Ruslan Zasukhin ruslan_zasukhin at valentina-db.com
Sun Sep 6 05:16:15 CDT 2009


On 9/6/09 11:35 AM, "Greg Olson-Hyde" <greg at hawkmount.com> wrote:

> However, my app won't compile and has 747 errors (mainly concerning
> RecordSets, Errors, Commits and Inserts)

RecordSets -- just do Find Replace over all project.
    replace to VCursor

> that I am going to have to go
> through manually and fix - a daunting task!
> 
> I seem to get stuck on the little things - such as:
> 
>    Dim vBusinessTable As VTable
>    Dim piStatus As Integer
>    vBusinessTable = EnglishDB.Table( "tblBusiness" )
>    piStatus = vBusinessTable.Field("ibRegoStatusQU").GetString
> 
> In the last line RB wants an integer, not a string, (as it should) so
> I changed it to:
> 
>    piStatus = val(vBusinessTable.Field("ibRegoStatusQU").GetString)

Two ways here:

1) slow by general

    Class Vfield() has
            Value as VARIANT.

So

     piStatus = (vBusinessTable.Field("ibRegoStatusQU").value
    

2) Faster, assume your field has ULONG type, then

     piStatus = (vBusinessTable.ULongField("ibRegoStatusQU").value




 
> Very clunky and there has to be a better way - I am still searching
> your documentation to find it though!
> 
> As always, thanks for your speedy help.

-- 
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