When I use a FileListbox set its Directory property to a network path, in IDE design the proper files are listed from my network drive but during runtime the Filelistbox defaults back to path of the exe's location. This also seems to happen with most components ie. DirectoryListBox as well.
I...
I use Delphi ver 2007 and wanted to know if there's any way to load a VCL form with an image1 component and flag it as non-movable in the IDE or lock it down in the form while editing.
I'm duplicating an existing and rather complex paper form into a program. I add nearly 92 edit & checkbox...
In short I'm trying to find the changing path of the temporary MS-Word document. This is the corresponding tmp for the open-unsaved document through Delphi.
Purpose: To save the user from having to save then (attach/reopen) this doc for email. Immediately upon the form completion (before...
...out to be.
Code Snipit:
AdoConnection1.ConnectionTimeout:=300;
AdoConnection1.CommandTimeout:=300;
Adoquery1.close;
Adoquery1.sql.add('select * from db.table');
adoquery1.open;
My sql example is simplified the actual SQL contains 4 unions for 4 differing databases which dramatically slow...
Your not alone I have also had exactly what could be described as intermittent problems, no show stoppers but
minor bugginess. The IDE would underline unknown units which would go away after compiling, and errors during the initial IDE loading were infrequent but happened. I could still get my...
LVL 1 question
I have two lines of code very similar 1 works fine and later changing only the operator causes it to fail.
//working
sql.add('update items set cost = 5 where contract = ''''');
but reverse it with
('update items set cost = 5 where contract != ''''');
Syntax error (missing...
Give this a try...
ADOQuery1.SQl.Add('Insert into Listings (Title)');
ADOQuery1.SQL.Add('Values('+QuotedStr('Title Test')+')');
ADOQuery1.ExecSQL;
or
ADOQuery1.SQL.Add('Insert into Listings (Title)');
ADOQuery1.SQL.Add('Values (:X1)');
ADOQuery1.SQL.Params.ParamByName('X1').AsString:='Title...
I'm completely new with VB2005 and this is probably obvious. I'm been learning with Visual Studio 2005 Standard and need work with the services. I've think I'm on the right path... using
System.ServiceProcess
But I get an error ServiceProcess is not a Class of System?
Is there something I...
Have you tried adding an ActionList to the app?
Actionslists will allow you to define many things including Cut/Copy/Paste. Double click the component and in the action editor create 'New Standard Action' and select TEditCopy,TEditPaste.
Then on your event TNumEdit.WhenKeyDown call...
1) Right-click Tquery and Add All Fields then do this again and select NewField give it a name ie: 'RowNumber'define it's type as an Integer and select CalcField.
2) On your TQuery add an 'OnCalcFields' Event.
3) Code something similar to this..
Tquery1.FieldByName('RowNumber').AsInteger:=i...
I would try running Vista while logged in as administrator or as a user with administrative privileges.
See if disabling Vista UAC control has any effect.
I think you might be running without proper privileges/security permissions.
Good Luck.
Tony
Try by defining a calculated field.
Right Click on the Tquery component and define all your fields from the Fields Editor. When you use this you must define all fields not just new ones.
Here's a loose example
var
VarName:=Integer;
Begin...
Using a ClientDataSet I've added a calculated field and this works pretty well but only on the last record all previous calculated fields are recalculated and duplicated. I've tried redefining the field using the Fields Editor to InternalCalc but with the same results. How can I insure that...
For the record there may be a better answer..I'm wanting to be a bit more efficient with system resources but used a workaround. I created a procedure to empty the duplicate datasets.
for (i):=0 to (dataset2.recordcount) -1 do
dataset2.delete;
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.