Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: corsair2
  • Order by date
  1. corsair2

    Excel Date format screw-up

    Geoff, They all have a variety of dates from this current year - I've a seperate app. which also displays the data (which is originally from an Oracle Db) and this 'agrees' with the Delphi app re. dates and formatting. Have also stepped through the Delphi app. (for a couple of hundred...
  2. corsair2

    Excel Date format screw-up

    Almost there! placed ' ' in front of the string sent to Excel and all looked fine..however, have discovered 1200 (of 33800) with date as ' 31/12/1899 00:00:00'. Geoff, you're right in that Delphi uses the 'object' structure of Excel (as does VBA) when connecting via automation. It's possible...
  3. corsair2

    Excel Date format screw-up

    Hi All! Have also just tried sending the dates formatted from the host app. as pure text strings, not dates, but Excel still manages to randomly transpose them ... Regards Steve
  4. corsair2

    Excel Date format screw-up

    Hi xlbo, I'm using Borland Delphi and linking to Excel using an automation object (ole). Only the date data-types seem to be affected with Excel defaulting to an in-built Custom Format. No VBA... Regards Steve
  5. corsair2

    Excel Date format screw-up

    Dear All, Thanks for the quick response! Bob, a cursory check seems to indicate that dates which would be invalid if transposed are being left. zbnet, have just tried your suggestion (dd/mmm/yyyy hh:mm:ss)and now most dates are formatted on the sheet as 'dd/mm/yy hh:mm'!! Also and apparently...
  6. corsair2

    Excel Date format screw-up

    Hi Folks! Have come across the following "feature" in Excel regarding dates which I thought users should be aware of. (see also faq68-5827). If you're regional settings are not USA then take care if using a third party program to transfer date-type data into an Excel spreadsheet. I've a sheet...
  7. corsair2

    excel date formatting from CSV

    I have a similar problem transfering dates into Excel. I've a Delphi program which retrieves data from an Oracle Db and then transfers the data to Excel. My problem is that Excel randomly transposes month and date values whilst simultaneously dropping time values. So my (UK date format) dates...
  8. corsair2

    TAdoQuery driving me NUTS!

    Me again, the idiot who posted the above! Hope no-ones wasted any time over this as the problem was in my duff code. Of course, I should have added 'SQL.Clear;' after the 'Close' instruction in 'With AdoQuery3 do begin'.... Please excuse my stupidity? Regards Steve
  9. corsair2

    TAdoQuery driving me NUTS!

    Hi all, Have the following code to retrieve data from an Access db; GetRejectTemp2SQL(RejectTemp2SQL); with ADOQuery3 do begin Close; SQL.Add(RejectTemp2SQL); Active:= True; First; end; where 'RejectTemp2SQL' is a string and 'GetRejectTemp2SQL' is...
  10. corsair2

    TSHFileOpStruct and AV's

    Sorry to have bothered anyone but have figured out the fix. Change the line; 'Struct.fFlags:= FOF_SIMPLEPROGRESS or FOF_NOERRORUI or FOF_NOCONFIRMATION;' to read; 'Struct.fFlags:= FOF_SIMPLEPROGRESS or FOF_NOCONFIRMATION;' Noticed when re-reading the MS API notes on SHFileOpStruct that...
  11. corsair2

    TSHFileOpStruct and AV's

    Hi, All Have the following function in my program (a procedure checks for updated data file on form creation and if found calls this function) - function WinCopyFile(Source, Dest: string): Boolean; var Struct : TSHFileOpStruct; Resultval: integer; begin ResultVal := 1; try...
  12. corsair2

    Excel and Word "Range" problem

    Hi Folks, I have an app in D6 which uses the 'Word' components from the 'Servers' TAB to format and print reports - no probs! Recently, I've had to increase the functionality of the app with the inclusion of output to an Excel spreadsheet. Now, the basics (using Excel as an OLE object) work...
  13. corsair2

    drop TDateTimePicker programmatically?

    Hi folks, Can anyone help by telling me how to have a TDateTimePicker component drop down programmatically ie - without any user input, for example when it gets the focus? The Help Files insist that 'DroppedDown' can be used to set as well as get the state but - no it cann't! Regards
  14. corsair2

    Process one record then access violation..

    I'm using Direct Oracle Access components, in this instance the OracleDataSet. Hence the reference to the returned dataset.
  15. corsair2

    Process one record then access violation..

    Hi again, have tried this also with FldVal declared as a type string - FldVal:= OracleDataSet2.FieldByName('Hist_Status').AsString; if (FldVal='Started') then ActiveFlg:= True else ActiveFlg:= False; The AV occurs as soon as the first line is actioned.
  16. corsair2

    Process one record then access violation..

    Thanks Guys, Have changed to "FieldByName('Hist_Status').AsString" and confirmed that the fields do not contain Nulls but still get the AV. In particular, what I don't understand is the 'write of address 0x00030f1c' message as I thought I was only reading... So, the only other thing I can think...
  17. corsair2

    Process one record then access violation..

    Hi all, Have the following piece of innocuous code which works fine when processing the first record then throws up access violations on the second - any ideas? if (ODS2.FieldValues['Hist_Status']='Started') then ActiveFlg:= True else ActiveFlg:= False; If I insert a break at the...
  18. corsair2

    Db table Null fields?

    Hi Folks have got the following line as part of a quick and dirty program to try and clean up a Db table from an old mainframe app. - if not(form1.ADOTable1.FieldValues['Field3'].IsNull) then.. Unfortunately, whenever it actually comes across a null field it throws up a "variant conversion...
  19. corsair2

    Problem with 'Mean' function?

    Thanks Lucie have copied your code to my form and it works fine! Think I'll just have to put this one down to experience... Strange thing is, the original works fine with MeanAndStdDev function! Regards Steve
  20. corsair2

    Problem with 'Mean' function?

    Thanks for the prompt response! However, having edited the code with your suggestion the error is still there. This really has me beat! Regards Steve

Part and Inventory Search

Back
Top