Illegal Cast Exception

Ruslan Zasukhin ruslan_zasukhin at valentina-db.com
Sat Oct 17 02:59:39 CDT 2009


On 10/17/09 12:19 AM, "Steve Albin" <steve at steve-albin.com> wrote:

Hi Steve,

> I just upgraded to V4RB 4.3 from 4.1.  Without changing anything
> in my project, I built the Mac version and ran.  I'm getting
> Illegal Cast Exceptions on VarChar fields in lots of places
> where I use an index as so:
>        return cursor.VarCharField(templateFieldCount+2).value
> and like this:

*********************
>      return VVarChar(cursor.Field(nTplPersonnelFldOffset+1)).GetString

Why you write it in such way?
I'd write it as 

   return cursor.VarCharField(nTplPersonnelFldOffset+1).GetString

Even better. GetString is method of VField. Right?
Then why to ask for VarChar ?
It is enough

   return cursor.Field(nTplPersonnelFldOffset+1).GetString


 
> My SQL is generally of the form, "SELECT Recid, * from table".

Ivan, can this be that bug which you have for Bart 2 days ago into 4.3.1?

> Is there something changed in the SQL that I need to know?


> By the way, I don't see any SQL manual on the Wiki.

<http://valentina-db.com/dokuwiki/doku.php?id=valentina:vcomponents:vsql:ref
erence:reference> 


> Before I drive myself crazy debugging, is there something I
> missed in the release notes regarding this?  Are there changes
> to REALbasic code that need to be made for version 4.3?





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