Something I have never been able to get my head around ever since Delphi 1 was released (I am now using Delphi 6 Enterprise) is how to use a "Watch".
Sometimes I need to know
When (say) MyTableMyField.value = (say) 100.
When (say) MyTableMyField.value changes bearing in mind that to use the...
I have Math in the Uses clause but the following nevertheless won't work. Can someone please tell me why?
tblMStockItem.Value := FloatToCurr(tblMStockSqMtrs.Value * tblMStockCostPMetre.Value);
I have Math in my Uses clause but neither of the following will work for me. I need
dm.tblMStockInitSqMtrs.Value to be limited to TWO decimal points.
tblMStocksqMtrs.Value := RoundTo(tblMStockHght.Value * tblMStockWdth.Value);
OR
RoundTo(tblMStocksqMtrs.Value) := (tblMStockHght.Value *...
Problem A
tblThingTotSqMtrs.Value := (tblThingHight.Value * tblThingWidth.Value);
This results in a number such as 43.6743 whilst I need it to be 43.67
Problem B
tblThingCost.Value := (tblThingTotSqMtrs.Value * tblThingCostPerSqMtr.Value);
This won't even compile and results in exception...
These files are being created in the folder where my source files are.
Upon running my project (from within the environment and
whilst it is still loading the files) it has suddenly taken to giving me an exception which refers to _QSQ99.DB or (some similar file) to the effect that I have "not...
I need to have (something like) the following which is obviously wrong. What should the code be?
ShowMessage ('Account' + dmStdAcc.qryGLGLNo.value + 'already exists. Delete it.');
Anyone?
I am an accountant and have a new client (of Chinese origin) and his Browser displays chinese characters in the Tool bars.
(i.e. Instead of the usual "File", "Edit", "View" etc. he has Chinese characters.)
He has no idea how it got like that and does not want it like that either.
I have been...
I use W2K Professional and know that SOMEWHERE I have set my modem to disconnect when dormant for in excess of 5 minutes.
A. It doesn't work and sometimes the modem stays connected when I have forgotten about it.
B. I can't find WHERE I set it to disconnect after 5 minutes. :-)
(It goes...
Until I started fiddeling with the settings for Word 2003 the st following a day-date (such as 1st) would automatically change to a tiny font and in line with the TOP of the sentence.
This no longer happens.
What have I done to upset this?
Anyone?
Unwanted and unpredicatble horizontal lines (as in underlining) appear from nowhere and without the "U" underline function being used. The "Help" on the subject (as usual) is quite UN-helpful.
I have disabled Spelling and Grammer checks, as that seemed to be related and appeared to have an...
My application has worked successfully - including a particular procedure.
Suddenly that procedure no longer works and when I try and examine values within the procedure during Runtime I get exception "tblMyTableMyField.value = Variable 'Self' inaccessible here due to optimization".
I don't...
I need to control the font of contents of a particular field in a unique situation during RunTime.
I expect I need something like ...
if tblMyTablePNo.value = 2 then
begin
fldOurInit.FontSize := 22;
fldOurInit.FontStyle := BoldItalic;
fldOurInit.FontColor := Red;
end;
...
I have been working on a project for some time during which I have often Run the
project from the Environment in order to test it. Suddenly the close button
EventHandler in the program, which amounts to simply the following, won't close
down the program and D6E simply refuses to respond.
So...
In order to download a recent update from McAfee I am warned that I "may have to disengage pop-ups" in order to do so.
Obviously I need to as I can't download the update.
But I haven't a clue as to exactly WHAT a "pop-up" is and how to "disengage" it or anything else.
(No wander the English...
Some months (years?) ago this was an issue with W2K professional. There was a lot on this website about it and it appeared that updates from MS eventually killed the problem.
Beause when I later completely re-installed W2K and applied all the most recent (then) cumulative updates the problem...
I need to call a procedure declared in the public area of a first form - from a second form. But am not having any luck.
My thread102-914655 refers.
Anybody?
Thanks in advance.
A procedure (say) Procedure ABC on (say) TFormMyFormOne can be called from anywhere on
that form with simply ABC; anywhere on the form.
How can can I call that Procedure from (say) TFormMyFormTwo?
Thanks in advance.
I have the identical tabel structure in different folders as follows
C:\h\StdAcc\GL \\ The default folder or I won't get the dmStdAcc.qryGL Active Property set to True
C:\h\StdAcc\1\GL
C:\h\StdAcc\2\GL
C:\h\StdAcc\3\GL
I am able to access the individual folders as follows
var...
Thanks to whosrdaddy thread102-893361 I am able access duplicate tables from different folders as
per the following code.
begin
qryname1 := '''C:\h\StdAcc\6\GL'' t1, ''C:\h\StdAcc\UsrTfr'' t2';
qryname2 := 't1.PNo = t2.PNo';
qryname3 := 't1.GLNo';
with dmStdAcc.qryGL do
begin...
I have the following which works fine.
with qryMyQuery do
begin
SQL.Clear;
SQL.Add('SELECT *');
SQL.Add ('FROM ''C:\h\MyQuery'''); (Where MyQuery is a permanent Folder.)
Active := True;
end;
I need to be able to vary 'MyQuery'during Runtime and am trying to
acheive...
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.