Facebookov profil osebe Stanko Milosev

Home » Delphi

Delphi (40)

dbExpress, Web, Delphi, MSMQ, Oracle

RSS Feed

Results 1 - 10 of 40

2.0/5 (8 votes)
Delphi/dbExpress
Author:Stanko Milošev
Problem with dbExpress is that it does not raise an exception if anything is wrong in database (for example, if you try to add primary key which already exist). So, to get an exception, best would be to use OnReconcileError in TClientDataSet......
Friday, 08 August 2008 | 516 hits | Print | PDF | Report | Read more
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
0.0/5 (0 vote)
Delphi/Web
Author:Stanko Milošev
I was using TEmbeddedWB: EmbeddedWb1.ElementByID['username'].SetAttribute('value', 'stanko', 0) This is if you ger error: Exception class EOleError with message 'Method 'Name' not supported by automation object In TEmbeddedWB.
Thursday, 04 September 2008 | 352 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
3.0/5 (1 vote)
Delphi/dbExpress
Author:Stanko Milošev
If you use FillChar on a variable which is type of PChar, you will loose pointer, and FreeMem will not work.
Monday, 17 November 2008 | 262 hits | Print | PDF | Report
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
1.0/5 (1 vote)
Delphi/MSMQ
Author:Stanko Milošev
First of all you have to install MSMQ. You will do it through Control panel->Add remove programs->Add/Remove Windows components. Second you will need to access MSMQ for managing, you can do it through Computer Management->Services and...
Tuesday, 09 December 2008 | 402 hits | Print | PDF | Report | Read more

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

Page 1 of 4


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