Delphi Pages Forums  

Go Back   Delphi Pages Forums > Search Forums

Lost Password?

Showing results 1 to 50 of 500
Search took 0.14 seconds.
Search: Posts Made By: Norrit
Forum: VCL 06-19-2018, 07:43 AM
Replies: 2
Views: 217
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: 274
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: 149
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: 337
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: 337
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: 2,571
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: 2,571
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: 575
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: 575
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: 793
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: 793
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: 793
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: 531
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: 793
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: 648
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: 676
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: 615
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: 676
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: 775
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: 534
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,528
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,528
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,528
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: 554
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: 554
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: 753
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: 830
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: 830
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,086
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,528
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,528
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: 962
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,086
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.
Forum: General 03-26-2018, 12:03 PM
Replies: 3
Views: 832
Posted By Norrit
From a ClientDataSet I'm not sure how to do that,...

From a ClientDataSet I'm not sure how to do that, also if that's even possible.

But you could do it on a TADOConnection/TADOQuery.
Implement the ADOConnecction.OnInfoMessage, trick is that what...
Forum: General 03-22-2018, 01:33 PM
Replies: 15
Views: 1,528
Posted By Norrit
I disagree on this point, especially for what the...

I disagree on this point, especially for what the TS wants.
you can build your own component and give it your own name, but in this case the TS should replace all TEdit with TSEdit (your example)...
Forum: General 03-22-2018, 08:33 AM
Replies: 15
Views: 1,528
Posted By Norrit
Make your own TEdit descendant in a new unit, but...

Make your own TEdit descendant in a new unit, but still name it TEdit.
Make sure in the forms where you want to use this it's unit is found BEFORE the original unit where TEdit lives in.
In this...
Forum: General 03-22-2018, 08:31 AM
Replies: 1
Views: 796
Posted By Norrit
All depends on how you store the image in the...

All depends on how you store the image in the combobox
or how you link your selected combobox item to the required image

This is faaaaaaaaaaaaaaaaaaar to little information to answer your question
Forum: General 03-22-2018, 08:30 AM
Replies: 1
Views: 750
Posted By Norrit
What is socket? A rest/soap server that you...

What is socket?
A rest/soap server that you install?
Rest is quicker then soap, but you still have the overhead.

As for the same data quickly, I would say that is what databases are for.

But...
Forum: General 03-09-2018, 12:33 PM
Replies: 2
Views: 1,098
Posted By Norrit
google...

google...
Forum: VCL 03-05-2018, 08:52 AM
Replies: 1
Views: 939
Posted By Norrit
Yes, it's just a matter of adding an extra...

Yes, it's just a matter of adding an extra transparent image with Draggable available.

#1 add your extra image and make it semi-transparent
#2 make it draggable within the boundries of the...
Forum: General 03-05-2018, 08:42 AM
Replies: 2
Views: 1,244
Posted By Norrit
Easy? There is commercial software to just...

Easy? There is commercial software to just overtake a screen (TeamViewer for example) which costs a lot of money and don't even support voice chat. And you think you could build this in a few weeks?...
Forum: General 03-05-2018, 08:42 AM
Replies: 3
Views: 7,407
Posted By Norrit
Easy? There is commercial software to just...

Easy? There is commercial software to just overtake a screen (TeamViewer for example) which costs a lot of money and don't even support voice chat. And you think you could build this in a few weeks?...
Forum: General 03-01-2018, 07:47 AM
Replies: 2
Views: 1,026
Posted By Norrit
first hit on google...

first hit on google (https://stackoverflow.com/questions/28699574/delphi-open-pdf-from-ios-android-local-storage?rq=1)
Forum: General 02-20-2018, 07:53 AM
Replies: 5
Views: 1,446
Posted By Norrit
Again, no answers to my questions/suggestions ...

Again, no answers to my questions/suggestions
But DoubleBuffered was enough?
Forum: General 02-19-2018, 11:27 AM
Replies: 5
Views: 1,446
Posted By Norrit
In the code you posted above is nothing of...

In the code you posted above is nothing of printing dots in any place.
Only thing you do is draw a line.
So again, what does the "slow" code look like?

And what is this code supposed to do, in...
Forum: General 02-19-2018, 08:28 AM
Replies: 5
Views: 1,446
Posted By Norrit
Sorry, but I really have no idea what you're...

Sorry, but I really have no idea what you're looking for.
And since this code doesn't do anything except drawing a line (FCanvas.MoveTo) and the rest is all pseudo code (with variable names without...
Forum: General 02-14-2018, 07:54 AM
Replies: 7
Views: 1,723
Posted By Norrit
Problem isn't the xml files, problem is that you...

Problem isn't the xml files, problem is that you do business logic in a UI!
Since you store the object data already in the treeview you don't need the array. It's not a matter of using both, it's a...
Forum: General 02-13-2018, 11:01 AM
Replies: 7
Views: 1,723
Posted By Norrit
This is a big problem if you mix logic in your UI...

This is a big problem if you mix logic in your UI what should be in your backend.
I'm guessing you've build some simple database structure using xml and want an id column. And instead of having some...
Forum: General 02-07-2018, 12:16 PM
Replies: 12
Views: 6,038
Posted By Norrit
You can get those values using EnumWindows or use...

You can get those values using EnumWindows or use a tool like Windowse to see what you should put in there for FF
Forum: General 02-07-2018, 08:56 AM
Replies: 12
Views: 6,038
Posted By Norrit
Yes, that's the DDE implementation, have you read...

Yes, that's the DDE implementation, have you read my comment on the EnumWindows construction?
Showing results 1 to 50 of 500

 
Forum Jump

All times are GMT. The time now is 02:01 AM.


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