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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by Ulfeng

  1. Ulfeng

    Changing the default printer for a Delphi application ?

    Try: There is a global Tprinter object called Printer. Printer.PrinterIndex := Printer.Printers.IndexOf('PrinterName'); If you wanted to be clever, you could put all of the printers in the Printer.Printers string list into a list box. and then do something like: ListBox.Items :=...
  2. Ulfeng

    Counting instances of running apps

    Turbopower has a component called onGuard that does this and much more. You can see the number of users, You can create trial and demo programs limited by time, number of uses, number of network users, etc. I think it's about $200. I don't know how they do the code for this though.
  3. Ulfeng

    listbox.items property tstringlist?

    Since StringList is derived from TStrings you will be able to do the following: //declare a string list in your class SL : TStringList; procedure myForm.Create(Sender : TObject); begin SL := TStringList.Create; SL.Add('String1'); SL.Add('String2'); SL.Add('String3'); //now sub your...
  4. Ulfeng

    Need Delphi or ActiveX control to view XML/XSLT

    if you're willing to pay for quality then turbopower's xml libraries are good. www.turbopower.com -Jonathan
  5. Ulfeng

    TDBGrid Problem

    Thanks, Ryan.
  6. Ulfeng

    TDBGrid Problem

    This may be easy but I've poured through the dbGrids.pas and grids.pas files to no avail. Anyone know how to read the buffered text in the TDBGrid for the current column? I tried to access through the SelectedField.AsString property but that just shows the old field data, not the current text...
  7. Ulfeng

    Is Delphi the best?

    The best! It's also portable to unix via kylix. I don't think you can create .dll with vb.
  8. Ulfeng

    Optimising code

    I've heard (I'm not completely sure) that to take advantage of multi-processor machines, one must write his/her program utilizing threads for processor intensive operations. The thread scheduler will assign a processor for running that thread. If you do not use threads in other words, multi...
  9. Ulfeng

    I have a problem recreating a form.

    First, I would say that TList is appropriate for holding objects, not an array, but that's my own opinion. The other thing I like to do is use class funtions (static). Here's an example. type TMyForm = class(TForm) ... class Function Execute(AOwner : TComponent) : tModalResult; end...
  10. Ulfeng

    sending data to certain printer

    I've used this in the past... Printer.PrinterIndex := Printer.Printers.IndexOf('PrinterName'); Hope it helps. -Jonathan
  11. Ulfeng

    TField in Memory...

    Thanks for the advice guys.
  12. Ulfeng

    TField in Memory...

    I have a requirement to add a TField in memory to an in-memory TQuery. This TQuery component is not on a data module. The code follows: Note AField is defined as TField; qCorrect:= TQuery.Create(nil); with qCorrect do begin Name := 'qCorrect'; AutoCalcFields := False; DataBaseName :=...

Part and Inventory Search

Back
Top