Delphi Pages Forums  

Go Back   Delphi Pages Forums > Search Forums

Lost Password?

Showing results 1 to 47 of 47
Search took 0.06 seconds.
Search: Posts Made By: ShaunVW
Forum: General 04-06-2018, 08:56 AM
Replies: 3
Views: 1,495
Posted By ShaunVW
Thanks Norrit for the response, I'll try the 2nd...

Thanks Norrit for the response, I'll try the 2nd option.
Easy enough to cast back to StringList.

Cheers.
Forum: General 04-06-2018, 05:45 AM
Replies: 3
Views: 1,495
Posted By ShaunVW
Variant array to hold strings + stringlists

Hello, please can someone advise me.
I am trying to create an array that holds both strings and stringlists. Is this possible? This is what I have tried already, but on compile it throws an error...
Forum: General 11-13-2017, 11:08 AM
Replies: 4
Views: 2,675
Posted By ShaunVW
It seems this might be by design, see...

It seems this might be by design, see https://connect.microsoft.com/VisualStudio/feedback/details/553307/process-does-not-redirect-result-of-shellexecute-into-redirected-file

Instead, must use...
Forum: General 11-13-2017, 08:50 AM
Replies: 4
Views: 2,675
Posted By ShaunVW
Thank you. I now get a return of 42 (which is...

Thank you.
I now get a return of 42 (which is >32, so apparently successful), but still no file appearing in the folder...?
Forum: General 11-13-2017, 07:23 AM
Replies: 4
Views: 2,675
Posted By ShaunVW
ShellExecute to pipe "net time"

Good day
Please can someone help me to figure out the command to use?
I currently have

ShellExecute(Handle, 'open', 'net time \\pdc-fs (file://\\pdc-fs)...
Forum: DB-Aware 10-24-2016, 05:49 AM
Replies: 6
Views: 5,242
Posted By ShaunVW
I have found the problem, and it was being caused...

I have found the problem, and it was being caused from the main program!
I have a lot of threads being called from the main program, so in testing this thread, not sure what I thinking when I wrote...
Forum: DB-Aware 10-21-2016, 10:16 AM
Replies: 6
Views: 5,242
Posted By ShaunVW
Thanks Norrit for your efforts trying to help me....

Thanks Norrit for your efforts trying to help me.
So I tried to manually set the connection string for the ADOQuery, still crashes.
Then I also changed the TQuery to query, and the query to str as...
Forum: DB-Aware 10-21-2016, 08:08 AM
Replies: 6
Views: 5,242
Posted By ShaunVW
I haven't changed the UDL file at all, still the...

I haven't changed the UDL file at all, still the original one.
And I use this UDL in other programs too.
But this is its contents anyway, with user/pw removed...

[oledb]
; Everything after...
Forum: DB-Aware 10-21-2016, 06:35 AM
Replies: 6
Views: 5,242
Posted By ShaunVW
TADOQuery crashing on open in thread

What used to run fine is now crashing, and I can't seem to figure out why.
I have placed the TQuery (of type TADOQuery) in a try/except block, but it never gets to the except part.
When I single...
Forum: VCL 03-17-2016, 12:24 PM
Replies: 6
Views: 3,699
Posted By ShaunVW
Than you Norrit, that indeed is what I was...

Than you Norrit, that indeed is what I was looking for.
For undefined, it now shows a little black square within the checkbox.
It does seem to overwrite the pink background behind the checkboxes,...
Forum: VCL 03-17-2016, 11:42 AM
Replies: 6
Views: 3,699
Posted By ShaunVW
Thanks Norrit, I'm going to have to look up some...

Thanks Norrit, I'm going to have to look up some stuff that you used, I'm not familiar with it.
I was just looking for a different way to colour it gray since I couldn't get the tri-state working,...
Forum: VCL 03-17-2016, 09:15 AM
Replies: 6
Views: 3,699
Posted By ShaunVW
Ok I've done it, see...

Ok I've done it, see https://dl.dropboxusercontent.com/u/43503478/Sample.rar
Forum: VCL 03-17-2016, 07:31 AM
Replies: 6
Views: 3,699
Posted By ShaunVW
Colouring of checkboxes within a stringgrid

Good morning
First off, thank you for all the help in the past, and I'm hoping someone is able to help again.

I have a stringgrid which I have populated with a whole lot of checkboxes....
Forum: General 11-10-2015, 12:43 PM
Replies: 4
Views: 1,656
Posted By ShaunVW
I can't seem to come right with how I want to do...

I can't seem to come right with how I want to do this, so my workaround tis to create a TPicture, copy the clipboard into the TPicture object, save it to a temporary file, and then link to this file...
Forum: General 11-10-2015, 12:08 PM
Replies: 4
Views: 1,656
Posted By ShaunVW
No, I have an image that I have copied to the...

No, I have an image that I have copied to the clipboard.
I now want to include this image into an email that I send out automatically.
The html string is actually a TStringList object which I add...
Forum: General 11-10-2015, 09:21 AM
Replies: 4
Views: 1,656
Posted By ShaunVW
I've tried a whole lot of variations of the...

I've tried a whole lot of variations of the following, but no luck, where emailBody contains the html strings:


emailBody.Add('http://www.delphipages.com/forum/clipboarddata.getdata');


The...
Forum: General 11-10-2015, 07:28 AM
Replies: 4
Views: 1,656
Posted By ShaunVW
Copying from clipboard into an html string

This is really a follow on from http://www.delphipages.com/forum/showthread.php?t=217300

I have manage to create a graph in Excel, and move the graph as an image onto the clipboard.
In an...
Forum: General 11-09-2015, 01:51 PM
Replies: 7
Views: 1,989
Posted By ShaunVW
Hi Jasser, I managed to do it like the following,...

Hi Jasser, I managed to do it like the following, based on your initial answer got me looking in the correct place. Thank you...

//This will copy the chart directly to the clipboard.
...
Forum: General 11-09-2015, 01:31 PM
Replies: 7
Views: 1,989
Posted By ShaunVW
Thanks Jasser for the help, but it copies the...

Thanks Jasser for the help, but it copies the cell contents, not the chart itself to the clipboard.
After I ran it, I then checked what was on the clipboard by pasting it into an empty email, and it...
Forum: General 11-09-2015, 01:24 PM
Replies: 7
Views: 1,989
Posted By ShaunVW
Thank you, I will test it out. Looking at the...

Thank you, I will test it out.
Looking at the code it makes me think it will copy the cell contents onto clipboard, but will feedback tomorrow sometime...
Forum: General 11-09-2015, 12:27 PM
Replies: 7
Views: 1,989
Posted By ShaunVW
That's the problem, I'm not sure how to do that...

That's the problem, I'm not sure how to do that programmatically :confused:
Obviously easy enough to do by right-clicking on it, etc. but I am wanting to generate the graph as doing now from code,...
Forum: General 11-09-2015, 09:50 AM
Replies: 7
Views: 1,989
Posted By ShaunVW
Including an Excel chart in email

I have created an Excel spreadsheet with a chart from Delphi code. I want to automate the process where only the chart itself is sent out in an email inline with the body message.
I realise that the...
Forum: General 10-10-2014, 12:07 PM
Replies: 20
Views: 2,965
Posted By ShaunVW
This was already checked, so obviously nothing...

This was already checked, so obviously nothing new.
But I really appreciate your persistence in this. Fortunately the workaround really works as expected, so I'm using it now.
I'm actually...
Forum: General 10-10-2014, 11:11 AM
Replies: 20
Views: 2,965
Posted By ShaunVW
Results of the call stack ...

Results of the call stack

Implemented.TImplementedForm.ImplementedMonthCalendarDblClick($1F68200)
:005281c7 TControl.DblClick + $1B
:0052c6e6 TWinControl.WndProc + $5CA
:0052bd27...
Forum: General 10-10-2014, 10:56 AM
Replies: 20
Views: 2,965
Posted By ShaunVW
Unfortunately I'm unfamiliar with using the call...

Unfortunately I'm unfamiliar with using the call stack :(
Forum: General 10-10-2014, 10:40 AM
Replies: 20
Views: 2,965
Posted By ShaunVW
Nice. That workaround works perfectly, thank you ...

Nice. That workaround works perfectly, thank you
Not sure how to mark this as solved.
I actually started a separate thread to see if the clicks on the MonthCalendar can be sorted as clicking on...
Forum: General 10-10-2014, 10:35 AM
Replies: 1
Views: 1,621
Posted By ShaunVW
In a different posting, I was having trouble with...

In a different posting, I was having trouble with closing a form if I double clicked a MonthCalendar component.
http://www.delphipages.com/forum/showthread.php?t=216530

Because I couldn't get it...
Forum: General 10-10-2014, 10:28 AM
Replies: 20
Views: 2,965
Posted By ShaunVW
Even with a new form created from scratch, double...

Even with a new form created from scratch, double clicking the MonthCalendar component, it doesn't work.
However, if I place a panel on the form with the same .Close() call, it closes!
Leads me...
Forum: General 10-10-2014, 10:21 AM
Replies: 20
Views: 2,965
Posted By ShaunVW
Sadly it didn't work either! I'm going to try...

Sadly it didn't work either!
I'm going to try recreate the form and test it.
Forum: General 10-10-2014, 09:51 AM
Replies: 20
Views: 2,965
Posted By ShaunVW
I can add the code for the AdoQuery into the...

I can add the code for the AdoQuery into the formclose, no problem. However I can't get the form to close, that is my problem.
I'll do a reboot, maybe tha's all it needs.
Strange problem...!
Forum: General 10-10-2014, 08:21 AM
Replies: 20
Views: 2,965
Posted By ShaunVW
The MysqlADOQuery is for when I update the date...

The MysqlADOQuery is for when I update the date to a MySQL database, I have removed all other code not used in this test, I could have removed this too, only saw it afterwards.

When I double...
Forum: General 10-10-2014, 08:18 AM
Replies: 20
Views: 2,965
Posted By ShaunVW
This is the complete unit. I am using Delphi...

This is the complete unit.
I am using Delphi XE3.


unit Implemented;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
...
Forum: General 10-10-2014, 07:50 AM
Replies: 20
Views: 2,965
Posted By ShaunVW
I tried in the MonthCalendar DblClick event ...

I tried in the MonthCalendar DblClick event

ImplementedForm.Close();
but it doesn't work.

The reason to not having 2 buttons, the user was looking for a minimal clicking option.
I...
Forum: General 10-10-2014, 06:26 AM
Replies: 20
Views: 2,965
Posted By ShaunVW
Modal form refusing to close

I have a form that is opened from the main form through

ImplementedForm.ShowModal;
On the ImplementedForm itself, I have a MonthCalendar component called ImplementedMonthCalendar that is set...
Forum: General 06-26-2014, 04:24 PM
Replies: 6
Views: 3,241
Posted By ShaunVW
I'm not sure what bookmarks are. I will look them...

I'm not sure what bookmarks are. I will look them up tomorrow.
I did try the EmptyParam parameter, I can't remember the error I got.
I will try again tomorrow at work, and feedback.
Thanks for...
Forum: General 06-26-2014, 01:25 PM
Replies: 6
Views: 3,241
Posted By ShaunVW
Yes, I think so. It is (I believe) something to...

Yes, I think so. It is (I believe) something to do with the variant array, how I initialised it, wrote to it, or something, except I don't know how to fix it! :confused:
Forum: General 06-26-2014, 08:11 AM
Replies: 6
Views: 3,241
Posted By ShaunVW
I have seen that thread and is how I got to the...

I have seen that thread and is how I got to the point where I am now.
However, I need to do more than one field (as in my code).
I am getting an access violation on the line

V :=...
Forum: General 06-26-2014, 07:22 AM
Replies: 6
Views: 3,241
Posted By ShaunVW
How to use getrows function

Hello everyone
Can someone please assist me with the correct usage of the 'getrows' function for TADOQuery?
It involves the use of variants, and most of the info I find is for VB.

var
query :...
Forum: General 05-28-2012, 09:48 AM
Replies: 3
Views: 10,226
Posted By ShaunVW
Thanks for anyone thinking about this, eventually...

Thanks for anyone thinking about this, eventually found out that the DrawText in the "else" clause also had to include the DT_WORDBREAK flag.
Forum: General 05-28-2012, 08:27 AM
Replies: 7
Views: 4,992
Posted By ShaunVW
I personally don't store the links to the images,...

I personally don't store the links to the images, on our server, you never know if an image goes MIA, I prefer to store the image itself in the table.
However, I don't have that many images, so...
Forum: General 05-28-2012, 08:21 AM
Replies: 6
Views: 1,798
Posted By ShaunVW
Are you wanting to save it to disk for...

Are you wanting to save it to disk for archival/backup purposes?
I would write it first to the DB Server, and then using Workbench (GUI), do a backup of data to disk.
Make use of query similar to...
Forum: General 05-28-2012, 07:43 AM
Replies: 3
Views: 10,226
Posted By ShaunVW
I have another question w.r.t. this multiline...

I have another question w.r.t. this multiline text, it works well in titles using #10 to split the lines. (e.g. in the tile for the column)
In another application though, I am reading the text to be...
Forum: DB-Aware 04-16-2012, 05:56 AM
Replies: 3
Views: 4,828
Posted By ShaunVW
Does no-one have any advice/suggestions for me? ...

Does no-one have any advice/suggestions for me?
Even thoughts?
Forum: DB-Aware 04-12-2012, 02:48 PM
Replies: 3
Views: 4,828
Posted By ShaunVW
I have now managed to set up my cluster, hope...

I have now managed to set up my cluster, hope that it might help others how I did it. I am still having some issues, and hope someone can advise me.

I eventually went with 3 PC's, one the mgnt...
Forum: DB-Aware 03-19-2012, 07:50 AM
Replies: 3
Views: 4,828
Posted By ShaunVW
MySQL Cluster

I am wanting to set up a MySQL cluster. The setup will be 2 mngt nodes, 2 SQL nodes and 2 data nodes, each data and SQL node will share the same PC, i.e. in total I will have 4 PCs in the full setup....
Forum: General 03-10-2012, 08:24 PM
Replies: 3
Views: 10,226
Posted By ShaunVW
I figured it out. A carriage return also forces...

I figured it out.
A carriage return also forces a new line, so I just specify my text as

'Line 1'#10'Line 2'

and the #10 forces the new line exactly where I want it.

Now how do I center...
Forum: General 03-10-2012, 07:22 PM
Replies: 3
Views: 10,226
Posted By ShaunVW
Using DrawText for multiline StringGrid

I have been trying to implement a multiline heading in my StringGrid, and have been trying the following code to do it, having changed the code to make it relevant to my StringGrid


procedure...
Showing results 1 to 47 of 47

 
Forum Jump

All times are GMT. The time now is 05:06 AM.


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