[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

How to Use MS Excel and Delphi 4

Posted on 1999-01-19
3
Medium Priority
?
141 Views
Last Modified: 2010-04-06
If i make an BDE alias, which is pointing to an MyBook.xls
How can i use it(MyBook.xls) in Delphi for database.
I get stuck when i'm supposed to give a table name (property of TTable object)
0
Comment
Question by:K_David
  • 2
3 Comments
 
LVL 17

Accepted Solution

by:
inthe earned 30 total points
ID: 1362453
Excel files will not appear in the TTable.TableName property
drop-down so to work around this you have to enter the worksheet file name with no extension followed by a $ in the TableName property.
You can also add a cell range. example MyBook$A2:F1000
To read all of the rows in the worksheet when specifying a cell range make the ending row number larger than the last possible row.
Regards Barry
0
 

Author Comment

by:K_David
ID: 1362454
If i use that, then GetFieldName will work propperly (can i read/write to this cell range?)
Thanx

0
 
LVL 17

Expert Comment

by:inthe
ID: 1362455
hi,
to be honest i am not sure but i dont see why not .i had to do a bit of digging to get the answer for you as i dont know much on using excel like this.i only got the above from a teamb member and that was all i could find
Regards Barry
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses
Course of the Month19 days, 21 hours left to enroll

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question