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...
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...
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...
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...
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)...
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...
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...
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...
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.