Delphi Pages Forums  

Go Back   Delphi Pages Forums > Search Forums

Lost Password?

Showing results 1 to 50 of 500
Search took 0.53 seconds.
Search: Posts Made By: Norrit
Forum: General 08-08-2019, 08:31 AM
Replies: 19
Views: 1,272
Posted By Norrit
If it's possible to post a complete string of...

If it's possible to post a complete string of what you're receiving an try to translate it would be easier, then we could do some tests aswell.
Do they have an anonymous/test file that they can...
Forum: General 08-07-2019, 07:55 AM
Replies: 19
Views: 1,272
Posted By Norrit
What is the code in your BitmapFromBase64 method?...

What is the code in your BitmapFromBase64 method?

Because converting to bitmap you need to load it in the correct class (jpg, bmp, png), at least in the older Delphi versions
Normally this is...
Forum: General 08-06-2019, 07:02 AM
Replies: 19
Views: 1,272
Posted By Norrit
Are you sure the input is a Bitmap? I...

Are you sure the input is a Bitmap?

I thought 0x47 is a .PNG representation...
Forum: General 07-22-2019, 10:14 AM
Replies: 1
Views: 2,380
Posted By Norrit
first hit on google ...

first hit on google
http://delphidabbler.com/articles?article=24&part=1#intro
Forum: General 05-03-2019, 02:53 PM
Replies: 3
Views: 6,488
Posted By Norrit
You don't post any code, except for...

You don't post any code, except for TcpClient1.Connect -> WriteLn -> Disconnect
Since TcpClient1 is the only component I can see, but this has no Blocking/Unblocking methods. And your code also...
Forum: General 05-03-2019, 09:32 AM
Replies: 3
Views: 6,488
Posted By Norrit
Why is there a TcpClient1.Connect each time? ...

Why is there a TcpClient1.Connect each time?

I would've expected something like:
if not TcpClient1.Connected then TcpClient1.Connect();
Forum: General 05-03-2019, 09:30 AM
Replies: 3
Views: 6,138
Posted By Norrit
My eyes are probably not what they used to be,...

My eyes are probably not what they used to be, can you copy/paste the output instead of screenshot?
Forum: General 05-02-2019, 07:20 AM
Replies: 3
Views: 6,138
Posted By Norrit
Delphi service has probably no interaction with...

Delphi service has probably no interaction with the userinterface allowed.
Play with the SW_SHOWNORMAL, I guess it would be SW_HIDE (or whatever the equivilant is, no Delphi running at the moment)...
Forum: General 04-25-2019, 02:09 PM
Replies: 5
Views: 7,838
Posted By Norrit
Delphi 6 is from 2001, so you're relying on a 18...

Delphi 6 is from 2001, so you're relying on a 18 year old help file which has API references of windows 2000?

Not to be rude or anything, but back in the day Delphi 6 (as for any even delphi...
Forum: General 04-23-2019, 07:22 AM
Replies: 1
Views: 6,496
Posted By Norrit
What I can read is that this component doesn't...

What I can read is that this component doesn't give any formatting options, this should be done through the TField DisplayFormat.
If you're lucky it takes the global settings (ShortDateFormat or...
Forum: General 04-19-2019, 10:24 AM
Replies: 2
Views: 6,593
Posted By Norrit
No, Abort will only exit the current function,...

No, Abort will only exit the current function, there's no Absolutely Abort.
And that's normal, since this would also abort the application run loop.

There are 2 ways
- make it a function and...
Forum: General 04-08-2019, 08:49 AM
Replies: 5
Views: 7,121
Posted By Norrit
What is the value of ExecuteResult ? And...

What is the value of ExecuteResult ?

And it's pointless to duplicate aws. First aws is the program to execute, the second is part of the parameter list, so therefor it shouldn't be there....
Forum: General 04-04-2019, 12:41 PM
Replies: 5
Views: 7,121
Posted By Norrit
Instead of cmd.exe you should execute aws And...

Instead of cmd.exe you should execute aws
And ShellExecute has a result that can be an error code.
Something like:

var
executeResult: integer;
begin
executeResult :=...
Forum: General 03-27-2019, 09:22 AM
Replies: 3
Views: 7,306
Posted By Norrit
You could try something like: ...

You could try something like:
ovRange.Columns(1).Numberformat := 'yyyy-mm-dd'

I guess you should call this beofre the CopyFromRecordset, so the range knows what to expect...
Forum: General 03-26-2019, 09:02 AM
Replies: 3
Views: 7,306
Posted By Norrit
TAdoDataset should have a FieldDefs property ...

TAdoDataset should have a FieldDefs property
And from there, a TFIeldDef.DataType
But I'm not sure if this is when you build your own Dataset or if that is also filled when you fill your Dataset...
Forum: General 03-19-2019, 08:12 AM
Replies: 1
Views: 7,009
Posted By Norrit
In RegEdit the key you're reading here is: ...

In RegEdit the key you're reading here is:
Software\WOW6432Node\TeesEyedTechnicalServices\ZFSX

At least, if you're a 32bit application, which I guess at this point. In code you should still use...
Forum: General 03-11-2019, 10:15 AM
Replies: 2
Views: 6,621
Posted By Norrit
And there is also no additional information to be...

And there is also no additional information to be found in the EventViewer?

And if all fails, just contact Embarcadero.
Delphi is a tool that costs quite a lot of money, they should help you...
Forum: General 03-11-2019, 10:12 AM
Replies: 3
Views: 6,505
Posted By Norrit
Reporting tools also use TPrinter, so if you're...

Reporting tools also use TPrinter, so if you're lucky you can manipulate their TPrinter somewhat so you don't have to do all the printing yourself.

I have no Delphi at the moment, but wasn't...
Forum: General 03-08-2019, 08:17 AM
Replies: 3
Views: 6,505
Posted By Norrit
Basically it should be a combination of ...

Basically it should be a combination of
http://www.scalabium.com/faq/dct0020.htm
and setting dmPaperSize to 0 and dmPaperLength and dmPaperWidth to whatever you need
Forum: General 02-25-2019, 08:14 AM
Replies: 7
Views: 7,746
Posted By Norrit
Your quote quote ('') is not a character, so the...

Your quote quote ('') is not a character, so the compiler error is obvious
You could try Key := #0, but this will just return a null character. There's no real equivalent of nothing for a Char...
Forum: General 02-14-2019, 10:07 AM
Replies: 5
Views: 8,298
Posted By Norrit
A profiler is an application that lets you see...

A profiler is an application that lets you see all communication to a database.
Not sure if MsAccess has one (I use it all the time for SQL Server), you should try to google that.

Otherwise you...
Forum: General 02-12-2019, 11:38 AM
Replies: 5
Views: 8,298
Posted By Norrit
Try to use a Profiler and see what the generated...

Try to use a Profiler and see what the generated SQL statement is that goes wrong (usually the last before you get the exception)
This will most likely point in the right direction of what part is...
Forum: General 02-04-2019, 04:20 PM
Replies: 2
Views: 8,007
Posted By Norrit
This code should work to execute a batch file. ...

This code should work to execute a batch file.
Problem is that in your batchfile you try to kill the service itself, that's not allowed.
Forum: General 01-08-2019, 09:14 AM
Replies: 2
Views: 8,249
Posted By Norrit
I'm curious what do not work meens, since the...

I'm curious what do not work meens, since the same EM_LINEFROMCHAR and EM_LINEINDEX are used in the SetColumn/SetRow and work.
So if the definitions of this would've changed those setters wouldn't...
Forum: General 01-04-2019, 09:53 AM
Replies: 5
Views: 8,991
Posted By Norrit
I have no Delphi anymore, so I cannot rewrite...

I have no Delphi anymore, so I cannot rewrite this

Bug the wd's are just constant values, a quick google will give the integer equivalent...
Forum: General 01-03-2019, 02:08 PM
Replies: 5
Views: 8,991
Posted By Norrit
In VBA your code could look similar to: Dim...

In VBA your code could look similar to:
Dim i1 As Long
Dim search1 As String
search1 = "NAME:"
Dim i2 As Long
Dim search2 As String
search2 = "SURNAME:"

...
Forum: General 11-14-2018, 09:23 AM
Replies: 1
Views: 7,220
Posted By Norrit
Most likely some permission issue somewhere. ...

Most likely some permission issue somewhere.
Try to run your application as Administrator (explicitely right click the .exe -> run as administrator) and see if it works then.
Not sure if that...
Forum: General 11-07-2018, 10:51 AM
Replies: 2
Views: 7,728
Posted By Norrit
Let me guess, you use a Unicode Delphi version. ...

Let me guess, you use a Unicode Delphi version.
Above code is Ansi based, so change all string to AnsiString and Char to AnsiChar and this should be fine.
Forum: General 09-25-2018, 12:40 PM
Replies: 3
Views: 6,981
Posted By Norrit
I would've assumed that OutputDebugString already...

I would've assumed that OutputDebugString already had this validation, but you could also do:
{$IFDEF DEBUG}OutputDebugString('asdfas');{$ENDIF}

Now if you compile in release you shouldn't see...
Forum: General 09-25-2018, 07:13 AM
Replies: 3
Views: 6,981
Posted By Norrit
Your assumption on the OutputDebugString might be...

Your assumption on the OutputDebugString might be inaccurate. I always thought it depends on the application compiled in debug or release mode. And by default it's compiled in debug mode...

You...
Forum: General 09-17-2018, 11:50 AM
Replies: 6
Views: 6,308
Posted By Norrit
It's hard to tell where you go wrong. As...

It's hard to tell where you go wrong.
As mentioned, build a small application in which you can reproduce this and give us that.

Here is still code missing and I'm guessing that it's in the...
Forum: General 09-17-2018, 09:17 AM
Replies: 6
Views: 6,308
Posted By Norrit
And what are you doing with DialogFormHandle? ...

And what are you doing with DialogFormHandle?
It's something global, what is it used for, and where (some other thread perhaps?)

Because executing this code should produce the dialog in front,...
Forum: General 09-17-2018, 07:36 AM
Replies: 6
Views: 6,308
Posted By Norrit
Most likely you have the calling form as...

Most likely you have the calling form as AlwaysOnTop, or you do something with DialogFormHandle...

And in your code, if you call Abert the DialogFormHandle will NOT be 0. So there's a big...
Forum: General 09-13-2018, 09:48 AM
Replies: 2
Views: 5,488
Posted By Norrit
I guess it can be done by using Remote Registry. ...

I guess it can be done by using Remote Registry.
In code it's pretty straightforward, just use TRegistry and call RegistryConnect with the other machine name. From that point on it's normal code as...
Forum: General 08-30-2018, 08:36 AM
Replies: 3
Views: 5,141
Posted By Norrit
Internet says that there could be a delphi.ini...

Internet says that there could be a delphi.ini file
http://www.scalabium.com/faq/dct0103.htm

I don't have a prehistoric Delphi anymore, so I cannot validate.

And my guess for the size should...
Forum: General 08-30-2018, 08:27 AM
Replies: 5
Views: 7,499
Posted By Norrit
Since DevArt is a vendor you could try and ask...

Since DevArt is a vendor you could try and ask there.

As for their information on this:
https://www.devart.com/mydac/docs/devart.dac.tcustomdaconnection.onconnectionlost.htm

And then the...
Forum: General 08-16-2018, 12:56 PM
Replies: 3
Views: 1,786
Posted By Norrit
It's your party, it was just my 2 cents. I'm...

It's your party, it was just my 2 cents.
I'm just not a big fan of coding in my native language, that's all.
I see a lot of Dutch programmers do the same thing, programming partially native.

To...
Forum: General 08-15-2018, 01:44 PM
Replies: 3
Views: 1,786
Posted By Norrit
No, I'm a Dutch developer and do all in Englisch....

No, I'm a Dutch developer and do all in Englisch.
If somebody who cannot understand Dutch reads my code (s)he will understand.

For you klab is meaningfull, but for none Polish speakers like me...
Forum: General 07-24-2018, 07:09 AM
Replies: 2
Views: 1,249
Posted By Norrit
This question is a bit too general to answer. ...

This question is a bit too general to answer.
How do you send your messsages from A to B, and how do you catch them

I'm guessing you have a SendMessage (or PostMessage?) in your code somewhere. ...
Forum: General 07-23-2018, 08:00 AM
Replies: 4
Views: 1,250
Posted By Norrit
Later versions of Excel are able to work with XML...

Later versions of Excel are able to work with XML
https://technet.microsoft.com/en-us/library/2006.01.blogtales.aspx
Forum: General 07-23-2018, 07:57 AM
Replies: 4
Views: 1,250
Posted By Norrit
It's not possible using csv. Csv as a file is a...

It's not possible using csv.
Csv as a file is a delimited structure for only 1 dataset.

You could add more, but then Excel (or any other application that could interpret this) cannot handle it...
Forum: General 07-10-2018, 11:26 AM
Replies: 8
Views: 2,246
Posted By Norrit
You can have a UNIQUE on multiple columns, so...

You can have a UNIQUE on multiple columns, so this still should work
ADD CONSTRAINT UC_ClubIdYourcolumn UNIQUE (ClubId, yourcolumn)

But you still could use your solution to verify before letting...
Forum: General 07-09-2018, 10:31 AM
Replies: 8
Views: 2,246
Posted By Norrit
What happens now if you have any errors in your...

What happens now if you have any errors in your datamodule? (connection lost, syntax error, ...)
Because this will be the same problem, your UI doesn't know...
What I'm basically saying you should...
Forum: VCL 07-09-2018, 07:45 AM
Replies: 1
Views: 3,029
Posted By Norrit
input in repeatfind is not an array of string,...

input in repeatfind is not an array of string, but an array of array of string
your record properties are array of string (d..w)
And here you want multiple record properties, therefor array of...
Forum: General 07-09-2018, 07:33 AM
Replies: 8
Views: 2,246
Posted By Norrit
UNIQUE in SQL would do the trick. When you insert...

UNIQUE in SQL would do the trick. When you insert a record that validates the unique the insert will fail.
Only thing for this you need to alter your table and add the unique constraint.
Should be...
Forum: VCL 06-19-2018, 07:43 AM
Replies: 2
Views: 2,162
Posted By Norrit
procedure TForm2.FormCreate(Sender: TObject); ...

procedure TForm2.FormCreate(Sender: TObject);
var
lbl: TLabel;
begin
lbl := TLabel.Create(Image1);
lbl.Parent := Self; { the form }
lbl.Top := Image1.Top + 10;
lbl.Left :=...
Forum: General 06-18-2018, 08:52 AM
Replies: 1
Views: 1,586
Posted By Norrit
http://www.delphipages.com/forum/showthread.php?t=...

http://www.delphipages.com/forum/showthread.php?t=217480

What is different between what you asked at that time with what you ask now?
And as always, what have you tried sofar yourself? (show us...
Forum: General 06-18-2018, 08:38 AM
Replies: 2
Views: 1,380
Posted By Norrit
SET @InTime=DateAdd(hour,@WorkHours,@InTimeDate)

SET @InTime=DateAdd(hour,@WorkHours,@InTimeDate)
Forum: General 06-13-2018, 06:49 AM
Replies: 6
Views: 1,764
Posted By Norrit
And you think this wouldn't happen in Delphi 6?...

And you think this wouldn't happen in Delphi 6? Please, don't make the mistake on going back to Delphi 6...
Forum: General 06-12-2018, 01:45 PM
Replies: 6
Views: 1,764
Posted By Norrit
Since it's probably the first form you create...

Since it's probably the first form you create it's seen as the MainForm.
And that's not what it is, it's a helper form. Hiding it is useless, and closing the main page will not close the...
Showing results 1 to 50 of 500

 
Forum Jump

All times are GMT. The time now is 03:15 PM.


Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2019, vBulletin Solutions, Inc.