How hard is it to run an Excel macro through a Delphi program. I think an OLE excel object should be used ??? Then there is some command to run the macro ???? I appreciate any advice.
Thanks
Martin.
Hi,
I have created an instance of an excel worksheet in a system I'm developing. The data is read from the spreadhseet and everything works fine. The problem I have is that the instance of excel stays open in memory when I close the software. The process list from alt+ctrl+del shows that...
Hi,
I am looking to read data from several worksheets within an Excel Spreadsheet. I will then manipulate the data and write into an Oracle table. Can anyone shed light on the most efficient way of doing this. Would it be through an Excel component?
I appreciate any help you can give me...
HI,
I am trying to plot a contour map for a circlcular surface. I have the contour map working great for the square surface but for the round surface the contour map does not look correct. The contour lines are not joining.
I am using the TChart component in Delphi 5. Here is the code...
i would go with the switch statement above. it is easier coded, easier read and more efficient than using multiple if statement.
default can be used as the ultimate exception at the end.
case option of
1:
2:
3:
Martin
I have just started using JBuilder - I use QueryDataSet to do queries from an Oracle table. How do I insert rows onto the table?? I am not using a data aware control, the data is coming from a JTable.
I am subtracting two dates to get the duration in a certian state. The duration will be in seconds.
Some people have suggested using the:
DateDiff(IntervalType,StartDateTime,EndDateTime)
This is perfect, brillant piece of functionality. The only problem I have is...
It sets the date at 31/12/1899 because this is the first date in the calender. The calender is treated like an array, with base element 0, '31/12/1899' in this case. I would suggest formatting your date field with a formula;
if field is null then date = sysdate
I have had the same...
Hi there,
I am trying to subtract 2 date and time fields to work out a duration in a state; For example:
end time start time
(26/11/2001 16:22:00) -(26/11/2001 16:00:00)
duration here will = 00:20:00 in hh:mm:ss format.
How can I do this...
Hi there,
I am trying to convert a value like '75:04' (being 75 mins 04 secs) to HH:MM:SS format...............If anyone can offer help i would be gratful. Thanks
Martin
Troyu,
Here is a procedure that i wrote, it appends a string to the text file......hope it is some help
procedure TForm1.WriteLog;
var
f: TextFile;
LogFileName : string;
begin
LogFileName := 'C:\ERR_LOG\Errors.log';
AssignFile(f, LogFileName);
Append(f);
Writeln(f, Error...
Hi I am trying to update a record in a table using SQL within Delphi using the similiar code to the following:
info_query.sql.clear;
info_query.sql.add('update INFOTABLE set name = :name');
info_query.sql.add('where DBTABLE = '''+'COMPTECH_INFO'+'''');
info_query.sql.add('and mach =...
I have a string:
test_123;3400;0
I want to be able to extract the middle substring 3400
What is the best way to do this ????
Any advice appreciated
Martin
Hi,
I am scoping out a new project at the moment. The report will be gathering information from Oracle tables and text files. Just trying to find out how well Crystal reports supports connection to txt files.
Could someone give advice on this please.
Thanks alot
Martin
Hi,
I am using strlcopy(buffer,PChar(job_array[kount].oper_id),oper_pos));
to extract a substring from a string
e.g.
20001,20002,20003,20004
I want to get 20002 from this string ???
The above code works for the first substring. But can i use it to move into the string and extract a...
does anyone know the code that would return the selected row id from a string grid, from a click or double clik event on that grid ??????
Thanks
Martin
dont know how you are trying to populate the combo.
try using a loop
while not reords.eof do
combo.add(record[x])
inc(x)
end;
not the exact code, but something like that should do it
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.