Right you are whosrdaddy.
Actually both the '*' and the '%' work the same, but since the '%' reflects standard SQL syntax, that's what I'm using. Thanks for the reply.
As it turns out, it works exactly as intended when the filter (using the prior example) uses the LIKE operator instead of the = operator with wildcards.
So:
LastName = 'SMI*' does not work, but
LastName LIKE 'SMI*' does work.
When using ADO components, the filter option appears to mirror the...
I'm using TADOQuery against an Access database (converted to SQL Server in production) and want to provide user-controlled filtering displayed in a standard DBGrid.
The SQL statement is a simple SELECT and I want to apply a filter on the field in the ORDER BY clause so I set the Filter like...
To answer the question of where you write the code to populate the TListbox (using Hilfy's suggestions on how to do it) I would recommend adding it to the form's OnCreate event.
Just like you said, add a TEdit and a TListBox to a form and populate the TListBox either programmatically or in design mode.
Then write code in the TEdit.OnChange event that evaluates its current Text property value and either searches or filters the Strings in the TListBox.
If you want it to...
Well, that's more complicated. [smile]
What I would probably do is extract the code from ComCtrls.pas that performs the TCustomRichEdit.Print function and see if you can tailor it to direct the output (via the SendMessage commands) to a handle that is defined for an EMF file instead of the...
From the Delphi 7 help files:
By default, a form owns all components that are on it. In turn, the form is owned by the application. Thus when the application shuts down and its memory is freed, the memory for all forms (and all their owned components) is also freed. When a form is loaded into...
You're right about the Parent property - it runs up through the containership to the form. But every component also has an Owner property that goes right to the form. That's the one you want to use.
It sounds like you don't want to print at all but just save the contents to a file for future printing on whatever printer the user (in the future) wants to use. If this is the case, use the RichEdit.Lines.SaveToFile function and pass a .rtf file name as the parameter.
I have a bit of code...
I don't know if you've gathered it from these responses, but all you really have to do is add JPEG to the uses clause of the form or forms that use them. Just that will allow your existing code to work just fine.
Another solution you might try - given the specifics of your questions - is to add a secondary index to the detail table and link on that index instead of the table's primary. Depending on the database you're using, you might create a descending index with (from Andrew's example) the linking...
Here's a modified extract from a printing/preview tool that I wrote. This part was specifically designed for sending raw text to a dot-matrix printer for printing checks. Hope it helps.
procedure PrintMe(Content: TStringList);
var
sPrinter, sDriver, sPort, sTitle: array[0..255] of Char...
If you cast the ActiveMDIChild as the type of form that it is (ie. TChildForm) then you can access its components directly from the main form.
if ActiveMDIChild is TChildForm then begin
// you can reference RichEdit "Code"
TChildForm(ActiveMDIChild).Code
end;
In MDI applications...
Your problem may be in printing a graphical file (wmf) that is structured with a fixed resolution (the screen) to a canvas with a variable resolution (the printers). If this is the issue, then what you need to do is convert the resolution of the graphic to appear in the proper location and...
I've got a speedbutton on my main form in a Delphi 7 app under Windows XP. But when I use a manifest file to try out the XP themes, the speedbutton caption goes bold on me. However, when all other buttons with the same parent are enabled at runtime, it displays in the normal font without the...
Well, I found my solution and thought I'd post it to close out this thread. Help came from medic's faq215-4585 and the highlight example from LookingForInfo's excellent reply on thread215-753155.
The code below is designed to work with span id's that are named just like the anchors with a "v"...
I need some help showing/hiding a set of <span> elements.
I've got an area on the html page that shows a company name and address. What I want to do is place some anchors (I think) that let the user select which address to display among choices like "Shipping address", "Billing address" and so...
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.