Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.

Welcome, Guest
Guest Settings

Thread: Variant array

Permlink Replies: 0
Patricio Cerda

Posts: 122
Registered: 3/13/01
Variant array
Click to report abuse...   Click to reply to this thread Reply
  Posted: May 12, 2017 8:26 AM

I'm working on a class to import Excel file data on a few different formats, some of them have many fields and other have just 5 or 6 fields, each field of the same kind of data type: integer, string, data or timestamp. The quantity of records are around of a thousand each file. I'm using Office2k components to open and read the data of those files.

My goal is to put the data on a Variant array that allocate each of those fields, but without the knowledge of the data type at moment of the import process. Is it possible to do that with a Variant array? Which would be a good Variant array definition-creation?

I'm using C++ Builder Berlin 10.1.

Any help would be appreciated.

Best regards,
Patricio Cerda
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02