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 Mike Lewis 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: *

  1. dogmaa

    name conflict

    I am working with a supplied XML document format that is sent to me over an HTTP connection to a supplier. I cannot change the format! But the problem is that within the XML document I have 2 nodes with the same name, "Price". In XSD schema the 1st price is defined as a complex type...
  2. dogmaa

    Utilizing stored procedures

    You could also do this asynchronously if you are using >= ADO 2.5 and >= SQL Server 7. The OnFetchComplete event of the ADO stored procedure sets a boolean flag before allowing you into the finally processing of results. I have created a test program to demostrate this as follows:- Create a...
  3. dogmaa

    BDE and XP

    ADO and Access is a good combination. The Delphi ADO components work well. I wouldnt trust more than 10 users to any desktop database though. ADO and MS SQL Server works well for larger installations. A good book is "professional ADO 2.x programming" the Data Access Layer puts the...
  4. dogmaa

    Reading, writing binary files

    sorry the min statement should read savesize := min( A.Size, MAXFILESIZE );
  5. dogmaa

    Reading, writing binary files

    here's a simple example I knocked up to backup a file. It reads the whole text file into a binary buffer and writes it out again. const MAXFILESIZE = 10000; type TBigBuffer = array[0..MAXFILESIZE] of byte; procedure DoSomethingWithBuffer( const Buff: TBigBuffer ); begin // ???? end...
  6. dogmaa

    Learning to use the Sender Object

    If find that the Sender is most useful when you are sharing an event between visual components. If you want to want test who the Sender was then you can use the component reference as follows:- if (Sender = btnOkay) then showmessage( 'sender is button okay' ) else if (Sender = btnCancel)...
  7. dogmaa

    Using TADOCommand

    The Owner is responsible for destroying the object created. myCmd is declared somewhere appropriate as myCmd: TADOCommand; nil is a predefined empty/null pointer constant 1) if YOU want to be the owner write:- myCmd := TADOCommand.Create( nil ); but you then have to destroy the object...
  8. dogmaa

    Learning to use the Sender Object

    Normally you get to CloseQuery by calling the Form's Close method. CloseQuery calls OnCloseQuery passing the FORM REFERENCE as the Sender. The original reference to the button is lost. A simple method is to declare an integer variable private to the form. Set a unique value for the button...
  9. dogmaa

    the if statement

    use expression to 'toggle' the boolean value:- with mainFrm.WordWrap1 do checked := not checked;
  10. dogmaa

    Pass parameter to crystal report through ASP page

    I'm trying to use CR8 CrystalViewer ActiveX on an ASP page, with IIS 5.0 on Windows 2000 Prof. edition. I'm also using MSSQL 7.0 - SP2 as the database. During design-time, the report works ( I connect to SQL Server using "NT Integrated Security" ) fine but during runtime, I'm getting...

Part and Inventory Search

Back
Top