milosev.com
  • Home
    • List all categories
    • Sitemap
  • Downloads
    • WebSphere
    • Hitachi902
    • Hospital
    • Kryptonite
    • OCR
    • APK
  • About me
    • Gallery
      • Italy2022
      • Côte d'Azur 2024
    • Curriculum vitae
      • Resume
      • Lebenslauf
    • Social networks
      • Facebook
      • Twitter
      • LinkedIn
      • Xing
      • GitHub
      • Google Maps
      • Sports tracker
    • Adventures planning
  1. You are here:  
  2. Home

64 bit.

Details
Written by: Stanko Milosev
Category: Delphi
Published: 05 May 2010
Last Updated: 30 November -0001
Hits: 5727

If you are having problems debuging in D2009 on 64 bit machine, then try this.

TObject(Sender) vs. (Sender as TObject)

Details
Written by: Stanko Milosev
Category: Delphi
Published: 20 January 2010
Last Updated: 20 January 2010
Hits: 6083

TObject(Sender) is unsafe since:

TButton(Edit1).Caption := 'junk code';

will not raise an exception, while:

(Edit1 as TButton).Caption := 'junk code';

will raise an exception.

Taken from here.

Find if field exists in a dataset

Details
Written by: Stanko Milosev
Category: Delphi
Published: 18 January 2010
Last Updated: 18 December 2011
Hits: 8888
if Table.FieldDefs.IndexOf('User1') > -1 then
       ShowMessage('Found')
     else
       ShowMessage('NOT Found');

Taken from here.

FormatMesage

Details
Written by: Stanko Milosev
Category: Delphi
Published: 29 September 2009
Last Updated: 18 December 2011
Hits: 5723

Using:

FormatMessage(Format_Message_Allocate_Buffer + Format_Message_From_System, nil, dwResult, 0, @pstrError, 0, nil);

Taken from here.

  1. Regional settings.
  2. CreateProcess - fail
  3. RSS
  4. Creating and modifying component templates

Subcategories

C#

Azure

ASP.NET

JavaScript

Software Development Philosophy

MS SQL

IBM WebSphere MQ

MySQL

Joomla

Delphi

PHP

Windows

Life

Lazarus

Downloads

Android

CSS

Chrome

HTML

Linux

Eclipse

Page 94 of 168

  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98