Exception class EClassNotFound with message 'Class TSmallint

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
halenpolen
Posts: 31
Joined: Sun 27 Jun 2010 20:50

Exception class EClassNotFound with message 'Class TSmallint

Post by halenpolen » Sat 30 Oct 2010 21:25

I found a bug in Virtualtable
I make 2 Column :

object TSmallintField
FieldName = 'VirtualTable1Field1'
end
object TStringField
FieldName = 'VirtualTable1Field2'
end

When I Run, It show-> Exception class EClassNotFound with message 'Class TSmallintField not found'.

halenpolen
Posts: 31
Joined: Sun 27 Jun 2010 20:50

Re: Exception class EClassNotFound with message 'Class TSmallint

Post by halenpolen » Mon 01 Nov 2010 06:34

I'm using delphi 2007 and UniDAC 3.50.0.12 for Delphi

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Post by AlexP » Mon 01 Nov 2010 14:46

Hello,

If you added fields in the *.dfm file manually, then it is incorrect syntax.
Please create fields in design time and save this form. You will be able to see correct fields descriptions in the *.dfm file

For example:

object VirtualTable1Field1: TSmallintField
FieldName = 'Field1'
end
object VirtualTable1field2: TStringField
FieldName = 'field2'
end

halenpolen
Posts: 31
Joined: Sun 27 Jun 2010 20:50

Post by halenpolen » Tue 02 Nov 2010 03:22

[quote="AlexP"]Hello,

If you added fields in the *.dfm file manually, then it is incorrect syntax.
Please create fields in design time and save this form. You will be able to see correct fields descriptions in the *.dfm file

For example:

object VirtualTable1Field1: TSmallintField
FieldName = 'Field1'
end
object VirtualTable1field2: TStringField
FieldName = 'field2'
end[/quote]

Thx I have to changed it manually,but It's work

Post Reply