F.A.Q.
|
Dear readers your questions are deserving of our attention. I also delight me for the received compliments. After all, who writes Articles, on internet or other bases directed to the enjoyments of a heterogeneous public, amuse inspires him verve on the accondiscendenzes of his/her own readers. The success of my Articles is so shown by the interest of a vast public and by the continuous stream of questions that you/they are set me regarding the database. It is always clearly not possible to answer, or to reenter in acceptable times: I apologize to the readers, but, as I already had the opportunity of participating in other good buys, the time, for the one who attends our work, it is an inflexible despot. I am delighted me however and always of your polite attention, that honors my job and it pushes our staff to be always to disposition of the public. How to reciprocate your attentions? Answering to the questions, that are an entitlement of whom reads and they impose to have to answer for the one that writes! To your service therefore, humble servant of mine vast and impassioned public. Premised this we pass to the answers.
|
| I
have an application type managerial fact in delphi 6 and use of the charts
paradox. If I wanted to bring networked the program thing would you advise
me to do????I am some in confusion on thing to do in the sense that I
don't know how to take a decision at the end the application it will have
to turn on three pc with windows networked xp to 100... Some have told me that I owe mappare the route of the file server others that there is no need it is of it because the files paradoxes manage the net but me I have tried and a lot of plan sincerely goes I don't know whether to do... have I read your manual on the database then it has me incuriosito what you call "my system" further explanations can be had by the way?
Unfortunately the information from her you delay to respect of the problem they are indeed little. The slowness caused in its program can justify him in varied ways. Generally, an usual bug, in the programs type Client-Servere, above all if necessary experience is not had, it is due to the connection of a chart or a query to a control type DBGrid. In fact the operations of scanning to the back of aforesaid chart they result to exaggeratedly be lens. In the case of database local, the charts are of the sequential files whose order is of physical nature or subordinate to an index. The file servers SQLs, operate instead with logic data sets that are not absolutely reported to a structural sorting order type physical. A file server for database report it manipulates them the data in base to the model report her, that is drawn by a belonging mathematical model to the theory of the whole. It is important to understand that the tuples or record of a chart are identified not in univocal way from the position but from a based primary key on one or more fields. When the file server gets a whole record, it adds, to each of them, a reference that stings to the following one: this makes the move very high-speed in before, but of an infuriating slowness that to the back. This is the reason for which we say that a RDBMS uses one-way I-beam pointers. The BDE resolves this problem preventively entertaining in a local cache the loaded records in the chart. In this way for the following records are asked to the file server, while the BDE takes care of him of those already examined, making in such way, the I-beam pointers above sued, totally bidirezionali. Ripeto, the causes can be indeed so many, generally, how much above described, it is one of the most frequent bugs but not the unico! Per how much it concerns the "My system", it is the birth of about ten years of study regarding the development of applications database. It faces a whole series of problem list owed to the concept of storage, visualization, manipulation of the data. I have decided to make it publishes a small part of it, since convinced champion of the concept "it is well that people are erudite! ". I will expose, however, in the I continue of my lessons, other abstractions riguardanti the "My system", so that, who wants, can use with success these theories of mine! Mariano. |
| Interest
me to know the difference that passes between a procedure and a function
and eventually as I do to come true themselves her before the second and
above all as to initialize her.
The substantial difference between the
procedure and the function and that the second returns a result ( can
return an integer, a float, a string, a boolean depends on what has to
make our function), while the procedure performs the part of code in it
written without returning nothing. unit Raddoppia; |
| I
have used the following code to do so that it returned me a naturally
determined quantity of numbers casuali,servendomi of a form, of a button
and of a listbox:
procedure TForm1.Button1Click(Sender: TObject); var I: Integer; begin ListBox1.Items.Clear; Randomize; I := 0; while I <= 1000 do begin I := I + Random (100); Listbox1.Items.Add ('Numero Casuale: ' + IntToStr (I)); end; The motive for my question
is in the fact that I receive a superior quantity of numbers to that that
I expected me and above all a superior cut of numbers to the hundreds.
Does say this, as can I calibrate the code in examination to allow the
application to return only me a certain quantity of numbers and solo the
numbers that for example go from 50 to 100? Certainly of one ready answer
of his I send kindest regards. |
| I
am interested to the study of SQL as after all you mention in his/her
guide database, but I don't know from whether to begin. Could you advise
me? In the bookstore I have given a glance and they exist various types of
sql but I don't know whether to purchase. What do I have to ask to the
retailer? which type of sql do I owe best man for delphi? P.S. Does an on-line guide exist? On Internet it is practically found of
everything, they miss only the magic bean and the wand of the good
Merlino. Let's show up us the essays on SQL. Dear Paul and Roberto,
suggestion two really effective exposures: "The hand-feed SQL"
written by Stephen Cannon and Gerard Otten. Cinquecentoottanta pages to be
tasted in loneliness, preferably in front of the computer. A noteworthy
book indeed, that will gradually introduce you in the world SQL, applying
to him very valid examples. Not to lose. If then this text not fiaccherà
your perspicacity to instruct you in this field, purchases without delay
"The hand-feed SQL" written by Ryan K. Stephens, Ronald R. Plew,
Bryan Morgan and Jeff Perkins: based on an iron didactic formulation and a
management spartana, rich of examples, exercises and the whole rest. It
will bring, to your technical baggage, of the noteworthy benefits. A good
book! Personally I have studied them both, to trust, and not only for
cultural motives exquisitely. If to survive you to the arduous probation,
write he/she anchors me, over that to compliment me for the spirit of
abnegation, will introduce you to of the essays that can complete your
preparation in subject. |
|
In the third lesson on the
database you mention the component TScreen that works, as it teach me, to
suit the application for qualsivoglia resolution video also maintaining
suitable proportions, font etc. I would Like to know if the aforesaid
component is native in delphi or you/he/she deals with a you compose
additional? Could I receive information about it and above all as to shape
him/it and from where eventually to download it? In the same lesson it highlights us the potentiality of the component ActionListEditor: could I know how to use it? The component TScreen is born with Delphi, it belongs to his genetic patrimony. She is created, as I have explained in a lesson published on the site to the startup of every application. It contains, among so many other things, the information related to the dimensions of the screen through the proprietorships Whidth and Size. We see an example: a denominated form FrmChiama positions a denominated form FrmProva. procedure
FrmChiama.FormCreate(Sender: TObject); |
| In
the lessons on the database, I have read that her ago reference and use of
the component 'Query.' Could I know the specific use and the relative
benefits brought by this component?
Simply I say that, without the use of SQL
it is not possible to realize application database of a certain level. In
the specific case, the component Query is the medium toward this language.
I have described with abundance of details the functions of the component
Query and the benefits that this language involves during the lessons
published on the site. Insofar, respectfully, rhyming you to the mentioned
lesson. To every way, the realization of applications type managerial,
therefore provosts to the manipulation of great quantities of data,
debbono obligatorily to use this language, since specific problems can
exclusively be resolved applying to SQL. The component Query, in our case,
it acquits, to quote some of it, spells tied up to the visualization,
accounting, updating and change of the data. Silently, behind the scenes.
Indefatigable worker, with his operated, burden on itself big part of the
hidden job that allows the good operation of an application interfacciato
with motor database! |
| I
would like so much to know if in delphi 7 exist a function that allows me
to verify if the code from me worded introduces imperfections.
Don't result me that a
function of the kind hesitates even if the question leaves space to
manifold interpretations, but we says that as surely you will already have
happened to each of us if there are some errors of syntax in the code the
compiler it doesn't allow us the compilation signalling us to that line of
the. PAS is found the error, if for example in our code we want to use a
variable but he has not preventively been declared (to es. varying_A): |
| Could
you tell me as to convert a hexadecimal lace in decimal?
Taking advantage of
the question and considered that other readers you have asked questions on
the DEC conversion HEX I have thought about creating a function that the
problem can resolve and youcan be found her in the page of the TIPS (it
converts from hex to decimal)
VAI
|
| I
am curious to know whether to install the BDE Administrator in the
computer recipient (end user of the application) it is had only to resort
to the software "InstallShiel" or there are in worth of the
makeups or the techniques that you allow to omit the potentialities of
this program. I could know anchor, if other softwares exist similar to InstallShied and that therefore they allow alias the installation and the configuration of the in the p.c. recipient and eventulamente where to retrieve them? Thanks Any program can manually be installed, also the BDE Administrator. A good knowledge of the register of Windows and the files of configuration is necessary that accompany the product. However it is a problem that doesn't have motive to be, since the program InstallShield in endowment with Delphi is really a good product. So many other similar applications exist (to visit the site www.pcwdirect.it), more valid, some expensive others less. Also it is possible to create a custom designed installer, but to have a great preparation is necessary. In the gross, InstallShield offers the necessary one to create a setup worthy of this name. And then, to given caval..! |
| In
the question that I have done: "A system exists for making only an
usable application for a determined time period, overdue which the
application won't be more usable, if not with the use of a code seriale
that serves from unblocking? " in which you answer me that
"Of systems exist different of it, more effective. he could plan her
Application with a counter that keeps in mind of the throwing of the
program. Also, if the application him interface with motor database, can
plan, for instance, for one determined chart, done a certain number of
record, reach which, does the program come to a basic blocco.In to how
much from her kindly recommended me in the FAQs I would desire to know how
to implement a code that monitorizzi the number of times in which the
software is launched? or, as to do so that my application containing
charts (database) you can contain only a certain number of record.
In the phase of opening of the program,
therefore in the principal form, it is necessary to implement a counter
that increases of one his own value to every explosion of the executable
one. A variable type Integer uses him marvelously to the scopo.Suddetto
value must have hidden in the system of windows, or if prefers, in a
string of the log, or anchors where she holds both to the shelter from the
fury hidden ache of the software raiders! To realize this alchemy can use
the component Memo, that, among his opulences, it sets a great deal in
beautiful show two functions toste: SaveToFile and LoadFromFile.
Says this it will have to have care to transfer the value from the counter
inside the component memo and vice versa (the functions StrToInt
and IntToStr, of which we have already spoken, are lent that more
he is not able), to apply therefore to the function SaveToFile in sued
precedence. It will go therefore to hide, the first time when the program
will be exploded, the value of the counter where more it will hold
opportune. Example:memo1.Lines.SaveToFile ('C:. Dat); |