Delphi Pages Forums  

Go Back   Delphi Pages Forums > Search Forums

Lost Password?

Showing results 1 to 50 of 500
Search took 0.28 seconds.
Search: Posts Made By: Norrit
Forum: DB Tools Yesterday, 12:44 PM
Replies: 1
Views: 48
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 Yesterday, 06:49 AM
Replies: 7
Views: 229
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: 229
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: 229
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: 1
Views: 90
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: 229
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: 386
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: 543
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: 519
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: 543
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: 676
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: 459
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,431
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,431
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,431
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: 494
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: 494
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: 670
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: 781
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: 781
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: 963
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,431
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,431
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: 850
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: 963
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: 781
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,431
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,431
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: 768
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: 716
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,059
Posted By Norrit
google...

google...
Forum: VCL 03-05-2018, 08:52 AM
Replies: 1
Views: 881
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,217
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,295
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: 995
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,409
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,409
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,409
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,671
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,671
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: 5,968
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: 5,968
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?
Forum: General 02-06-2018, 10:23 AM
Replies: 12
Views: 5,968
Posted By Norrit
And what is not working? The DDE...

And what is not working?
The DDE implementation? Could be, DDE is somewhat deprecated (my oppinion)
You could always try a EnumWindows construction, for Chrome is a method in the link I provided in...
Forum: General 02-05-2018, 08:52 AM
Replies: 2
Views: 1,217
Posted By Norrit
just look at how the rtf tags should be and...

just look at how the rtf tags should be and insert them through code.
I'm not sure how they manually change the image settings, since the default RichEdit doesn't support these functions. But rtf...
Forum: General 01-19-2018, 08:34 AM
Replies: 2
Views: 1,266
Posted By Norrit
SELECT Convert(DATETIME, [C_08]) as [D_08] ...

SELECT
Convert(DATETIME, [C_08]) as [D_08]
FROM [yourtable]
Forum: General 01-16-2018, 09:40 AM
Replies: 5
Views: 1,508
Posted By Norrit
Remove both oExcel.Disconnect; ...

Remove both
oExcel.Disconnect;
oExcel.Quit;
???

Because both have something to do with how to react after the Save
And why is it a SaveCopyAs, I would've expected a SaveAs...
Forum: General 01-16-2018, 09:37 AM
Replies: 3
Views: 1,358
Posted By Norrit
I would say it's the maprules, but that should be...

I would say it's the maprules, but that should be an easy test on your side.
I'm not a firedac user, so cannot verify anything on this part. But users with similar problems all pointed to this...
Forum: VCL 01-16-2018, 09:34 AM
Replies: 6
Views: 1,565
Posted By Norrit
The definition for Delphi 7 could be something...

The definition for Delphi 7 could be something like:
function SHGetFolderPath(hwnd: HWND; csidl: Integer; hToken: THandle; dwFlags: DWORD; pszPath: PChar): HResult; stdcall; external 'shfolder.dll'...
Forum: VCL 01-15-2018, 01:01 PM
Replies: 6
Views: 1,565
Posted By Norrit
Have you read the link? It's all explained...

Have you read the link?
It's all explained there, including what using to add...

And even the SHGetFolderPath is a link where you can get more information about it
Not sure why you ask about a...
Forum: General 01-15-2018, 11:16 AM
Replies: 3
Views: 1,358
Posted By Norrit
You could try this: ...

You could try this:
https://forums.embarcadero.com/message.jspa?messageID=680492

And then the part on the Connection.FormatOptions:

FConnection.FormatOptions.OwnMapRules := True;
with...
Showing results 1 to 50 of 500

 
Forum Jump

All times are GMT. The time now is 11:23 PM.


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