Page 1 of 1

Thread safety reading Cell Values?

Posted: Fri Dec 12, 2014 2:23 pm
by billegge
Log story short, are the following functions thread safe?
Sheet.CellType[ColNo, Row]
Sheet.AsString[ColNo, Row]
Sheet.AsVariant[ColNo, Row]

Long Story:
I am reading data from an excel file and importing that into a database. I want to use the XE7 threading library and FireDAC Array DML to quickly read the excel data and populate the array. Each thread will be calling the above methods. My question is, are these thread safe as long as I am only reading the data.

Re: Thread safety reading Cell Values?

Posted: Mon Dec 15, 2014 12:43 pm
by larsa
Hello

Probably. I have not tested this, but I can't think of any reason why id shouldn't work.