Delphi Pages Forums  

Go Back   Delphi Pages Forums > Search Forums

Lost Password?

Showing results 1 to 50 of 500
Search took 0.15 seconds.
Search: Posts Made By: Norrit
Forum: General 09-25-2018, 12:40 PM
Replies: 3
Views: 549
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: 549
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: 587
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: 587
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: 587
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: 724
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: 866
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: 1,440
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: 700
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: 700
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: 633
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: 631
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: 631
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: 1,211
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: 1,211
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: 1,276
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: 1,211
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: 1,117
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,034
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: 814
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,132
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,132
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...
Forum: General 06-05-2018, 02:46 PM
Replies: 9
Views: 3,221
Posted By Norrit
You mentioned that the .csv displays [1234.80]...

You mentioned that the .csv displays [1234.80] with brackets, and that's obvious since you provide it that way.


And this cannot be converted to columns by the excell text-to-columns. You could...
Forum: General 06-05-2018, 06:53 AM
Replies: 9
Views: 3,221
Posted By Norrit
Can you spot the brackets? s :=...

Can you spot the brackets?

s := '['+'1234.80'+']'

So what o what would could you do to remove them...
Yes, don't add them

s := '1234.80'

But I guess you didn't have enough Coffee at that...
Forum: DB Tools 05-28-2018, 09:05 AM
Replies: 4
Views: 1,635
Posted By Norrit
What I meant was that Marina is harder to...

What I meant was that Marina is harder to implement than other databases.
Why are you so stuck on ODBC? It could also be any connection, or for that matter any database. I still not understand your...
Forum: DB Tools 05-25-2018, 12:44 PM
Replies: 4
Views: 1,635
Posted By Norrit
According to this question I guess you're not...

According to this question I guess you're not experienced with database programming.
When you're learning this, why did you choose mariadb? It's an unusual choice to start with, since it's a MySQL...
Forum: General 05-25-2018, 06:49 AM
Replies: 7
Views: 1,313
Posted By Norrit
Yes, that checkbox set to "false" emulates...

Yes, that checkbox set to "false" emulates somewhat the user experience.
It's normally the first thing I uncheck, but I guess there's a reason why it's default "true"...
Forum: General 05-23-2018, 09:33 AM
Replies: 7
Views: 1,313
Posted By Norrit
In the newer Delphi versions you have Exception...

In the newer Delphi versions you have Exception types to ignore, where you can add specific exceptions to ignore.
But you'll have to check the "Stop on Delphi Exceptions" back again

Only thing...
Forum: General 05-22-2018, 01:14 PM
Replies: 7
Views: 1,313
Posted By Norrit
Tools --> Debugger Options --> language...

Tools --> Debugger Options --> language Exceptions --> "Stop on Delphi Exceptions" --> Uncheck
Forum: General 05-22-2018, 08:13 AM
Replies: 2
Views: 952
Posted By Norrit
If you compile in 32 bits mode it already does...

If you compile in 32 bits mode it already does this.
For example: HKEY_CURRENT_USER\Software\YourName
will automatically read the value from HKEY_CURRENT_USER\Software\WOW6432Node\YourName on an...
Forum: General 05-22-2018, 08:03 AM
Replies: 7
Views: 1,313
Posted By Norrit
EMyError is probably not the exception type that...

EMyError is probably not the exception type that is thrown.
You could try E:Exception instead. That catches any exceptions.
Forum: General 05-07-2018, 09:39 AM
Replies: 1
Views: 1,021
Posted By Norrit
My guess is that you've written a form descendant...

My guess is that you've written a form descendant just from code, so without the dfm. If you want a form descendant just add a new form through menu to your app. Then all that is needed for the base...
Forum: General 05-01-2018, 07:24 AM
Replies: 4
Views: 941
Posted By Norrit
A nice piece of code, but what are the problems...

A nice piece of code, but what are the problems in this, what are the parts that don't work as expected?

And naming conventions are a must, ButtonX, StringGridX, what are it's purposes?

As for...
Forum: General 04-30-2018, 11:44 AM
Replies: 1
Views: 915
Posted By Norrit
This is not a default Delphi/Windows...

This is not a default Delphi/Windows implementation as far as I know

You could enhance your TEdit with a OnWarning (similar to OnHint) and implement it. Here you can also see how OnHint does this....
Forum: General 04-30-2018, 11:37 AM
Replies: 4
Views: 941
Posted By Norrit
We love school assignments... What have you...

We love school assignments...

What have you got so far and what are the problems you encounter?
Not sure how you get your "electronic package" and what "matrix mxn" is, so perhaps if you provide...
Forum: General 04-26-2018, 02:48 PM
Replies: 11
Views: 1,100
Posted By Norrit
FillChar(FileOpStruct, SizeOf(FileOpStruct), #0);...

FillChar(FileOpStruct, SizeOf(FileOpStruct), #0);
Are you sure this is #0 instead of 0?

FileOpStruct.pFrom := PChar(APath + #0#0);
Why the double #0?

Easiest test deletes all (copy/paste...
Forum: General 04-24-2018, 07:16 AM
Replies: 3
Views: 725
Posted By Norrit
A TMemoryStream is what it says, a MEMORY stream,...

A TMemoryStream is what it says, a MEMORY stream, so still no file untill you call SaveToFile.
How hard is it to call MemoryDecrypt and get it's output in a TMemoryStream? O wait, that example is...
Forum: General 04-18-2018, 07:37 AM
Replies: 15
Views: 1,846
Posted By Norrit
As mentioned is the problem in your own TEdit...

As mentioned is the problem in your own TEdit component. You don't validate if there's an OnExit assigned and therefor it gets removed.
So you must store the original method and execute it in your...
Forum: General 04-17-2018, 06:54 AM
Replies: 15
Views: 1,846
Posted By Norrit
Or you could try to catch the CM_EXIT, but that...

Or you could try to catch the CM_EXIT, but that depends on implementation
Forum: General 04-17-2018, 06:52 AM
Replies: 15
Views: 1,846
Posted By Norrit
Guessing you went this route: Somewhere in your...

Guessing you went this route:
Somewhere in your code you do a OnExit := MyOnExit.
But you should validate if the OnExit event already has a value and store that in a private var (of you own TEdit)....
Forum: General 04-17-2018, 06:45 AM
Replies: 3
Views: 758
Posted By Norrit
There is always code, the way you create your...

There is always code, the way you create your form, the way you make the form visible, and so on...
Forum: General 04-16-2018, 07:42 AM
Replies: 3
Views: 758
Posted By Norrit
Since you don't post any code it's guessing And...

Since you don't post any code it's guessing
And the best guess is that you show your subform with ShowModal, which explains that your MainForm doesn't receive any messages.
Forum: General 04-06-2018, 07:52 AM
Replies: 3
Views: 944
Posted By Norrit
Why store this in an anonymous type like...

Why store this in an anonymous type like VarArray?
You could easily build a class to hold these properties, and then have a T(Object)List instead of the base array (max 10 items)

But if you want...
Forum: General 04-03-2018, 07:40 AM
Replies: 3
Views: 972
Posted By Norrit
Then you obviously do something wrong But...

Then you obviously do something wrong

But I'm not in the mood for guessing games...
Forum: General 03-30-2018, 06:50 AM
Replies: 3
Views: 972
Posted By Norrit
https://stackoverflow.com/questions/11773986/how-t...

https://stackoverflow.com/questions/11773986/how-to-insert-image-into-database-using-tadoquery-component-only/11775398#11775398
Forum: DB-Aware 03-28-2018, 08:57 AM
Replies: 3
Views: 1,427
Posted By Norrit
I guess it finds your x86 dcu prior to your x64...

I guess it finds your x86 dcu prior to your x64 one.
At least that is what the error tells you
Forum: General 03-28-2018, 06:58 AM
Replies: 15
Views: 1,846
Posted By Norrit
Ok, finally some solid feedback, thank you. ...

Ok, finally some solid feedback, thank you.

I still disagree on using the TRichEdit as a TEdit replacement, but that's a matter of taste I guess.

That you think I lack OOP just because I reuse...
Forum: General 03-27-2018, 12:56 PM
Replies: 15
Views: 1,846
Posted By Norrit
And TRichEdit is a Delphi component, which has...

And TRichEdit is a Delphi component, which has it's own implementation. So you throw out a lot of your own argument if you want it to be as close to windows as possible. This component is not a...
Forum: DB Tools 03-27-2018, 07:30 AM
Replies: 2
Views: 1,236
Posted By Norrit
"String or binary data would be truncated" is...

"String or binary data would be truncated" is normally when you try to save a string that is too long.
For example, you try to store a string of length 50 in a db field with length 40
I doubt this...
Forum: DB-Aware 03-27-2018, 06:50 AM
Replies: 3
Views: 1,427
Posted By Norrit
What version of Delphi are you using, perhaps...

What version of Delphi are you using, perhaps it's not included in there.
Or your directories (search paths) are invalid in x64 mode and you find the x86 first.
Showing results 1 to 50 of 500

 
Forum Jump

All times are GMT. The time now is 07:39 AM.


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