Facebookov profil osebe Stanko Milosev

Home » Delphi » Delphi

Delphi (27)RSS Feed

Results 1 - 10 of 27

0.0/5 (0 vote)
Delphi/Delphi
Author:Stanko Milošev
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.
Wednesday, 20 January 2010 | 198 hits | Print | PDF | Report | Read more
5.0/5 (1 vote)
Delphi/Delphi
Author:Stanko Milošev
if Table.FieldDefs.IndexOf('User1') > -1 then ShowMessage('Found') else ShowMessage('NOT Found'); Taken from here.
Monday, 18 January 2010 | 165 hits | Print | PDF | Report | Read more
4.0/5 (1 vote)
Delphi/Delphi
Author:Stanko Milošev
If you are receiving a message like this, and you know that path exist, also, you added in the system path, then check in Delphi Tools->Options->Environment Variables, if you have path defined there too, then Delphi will override existing...
Monday, 22 September 2008 | 242 hits | Print | PDF | Report | Read more
0.0/5 (0 vote)
Delphi/Delphi
Author:Stanko Milošev
If you receive that exception, and you are using something like: ... var   Buffer: array [0..MAX_SIZE] of Char;   Than MAX_SIZE is too big, because Char can take small mount of data. Use better something like this: procedure...
Wednesday, 22 October 2008 | 227 hits | Print | PDF | Report | Read more
0.0/5 (0 vote)
Delphi/Delphi
Author:Stanko Milošev
Here is an example of function for geting logs from command line. This mean, if you call, for example, chkdsk, you will get what would be writen on a console output. Also, if command failed, you will get that information :)   function...
Friday, 21 November 2008 | 197 hits | Print | PDF | Report | Read more
0.0/5 (0 vote)
Delphi/Delphi
Author:Stanko Milošev
If you are using ClientDataSet, with flat file database (SaveToFile, LoadToFile), then also use: procedure TDataModule1.ClientDataSet1AfterOpen(DataSet: TDataSet); begin   ClientDataSet1.LogChanges:=False; end; Because otherwise ClientDataSet...
Monday, 24 November 2008 | 221 hits | Print | PDF | Report | Read more
0.0/5 (0 vote)
Delphi/Delphi
Author:Stanko Milošev
To save XML in human readable format, using OmniXML you will need these lines of code:   xml := CreateXMLDoc; xml.PreserveWhiteSpace := False; ... xml.Save('c:file.xml',ofIndent);  
Thursday, 18 December 2008 | 211 hits | Print | PDF | Report
0.0/5 (0 vote)
Delphi/Delphi
Author:Stanko Milošev
if Screen.ActiveForm Application.MainForm then  // There is an opened Window which is not the MainForm   Taken from here.
Tuesday, 06 January 2009 | 165 hits | Print | PDF | Report | Read more
9. Log in
0.0/5 (0 vote)
Delphi/Delphi
Author:Stanko Milošev
You need to access computer which is not in a domain? No problem Here is the code: var token: Cardinal; dwResult: DWORD; nr: TNETRESOURCE; sl: TStringList; begin nr.dwType := RESOURCETYPE_DISK; nr.lpProvider := nil; ...
Friday, 12 June 2009 | 166 hits | Print | PDF | Report | Read more
0.0/5 (0 vote)
Delphi/Delphi
Author:Stanko Milošev
Yesterday, while I was reinstalling a components, my Delphi 2007 suddennly looked like Delphi 7, with undocked IDE, I don't know what happened, but I was able to change like it is described here, I just clicked Embedded designer check box, restarted...
Thursday, 18 June 2009 | 170 hits | Print | PDF | Report | Read more

<< Start < Prev 1 2 3 Next > End >>

Page 1 of 3


Powered by AlphaContent 4.0.16 © 2005-2010 - All rights reserved