- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 2
- Posts with Downvotes
- 2
- Downvoting Members
- 2
33 Posted Topics
Re: I think I see your problem: RegulatroSetting is a property, so assigning a value to it will call the SetRegulatorSetting, but, in the Get function you add a equally named variable, RegulatorSetting, that can be -and is- confused with the property it self! Avoid using the same name for 2 … | |
Re: With the bare tips you give, I can only tell you: press the print key on your keyboard and wait! ...or programatically, you can do the same from the form code just using this: [code] Print; [/code] | |
Re: It depends on the database you are using: SQLServer, Access, etc., each one will have its own means to launch a backup proccess. Once you know the database you are using, then you can search on google (or send a more concise question here), I can't help you on that … | |
Re: Many, basically trying to do something not matematically possible: Divide by cero, log of a negative number, sqrt of a negative number... and also operations with a result out of the limits: a:= Power(999,999) for instance won't fit in your PC! | |
Re: If I am right, **ptr is a pointer to an array of pointers to short integers... in delphi it is not used like this (thanks, Lord!). If you know the lengths of the arrays when coding: [code] var a: array[0..10, 0..20] of short; [/code] Then you pass a as paramter, … | |
Re: Not so simple... a .DFM is mandatory in that case, so you better find a computer that works and make it run... or you plan to debug/adjust output it remotely? And, btw, I think you will need a TImage on top of the form in order to paint something on … | |
Re: You can't autofix a database, here or in the moon. In SQl you can make a select to gather all the info you mention: Tablas, index on this tables... all depend on the database you use... for FireBird, i have some examples, but you can find them easily googling too. … | |
Re: FireBird is my clear choice: You have an "embeded" version that doesn't need to installl nothing, just copy a dll along with your exe and thats all (ofcourse no BDE install or anything, nothing). Yo can even access a database in read-only mode from your app having all the file … | |
Re: Well, you ask for help, but please, don't demand it! If 210 reads your question and don't understand it, or don't know any usefull answer, may be your question is too dificult, or too long (IT IS TOOOOO LONG in it's initial form) or described too poorly. Anyway, I will … | |
Re: May be the initial database is corrupt, and a cicle of backup-restore fix it, so the resulting database can access asll the records, while the first one can't. Try deleting the indexes, then re-creating them again (or reconstruct it if such an option is on your database manager). | |
Re: How do you connect to the DB? Where does those procedure live (trigger asociated to a table, on the DB itself, on the delphi code...)? I would take a little more info to solve, but looks strange anyhow (MS Office component uses to behave strange some times BTW). | |
Re: As I understood: You have a form "A" with a button to open a form"B", and also form "A" must close itself automatically. First, you need a Application.MainForm always present, it may be a menu, a wellcome splash (make it invisible, don't free it) but anyway you NEED a mainform. … | |
Re: HEY! I have it! I checked Word does it in options, select default locations, just hide the file type and file name component and use the '*.' trick commented above, so it looks as you should expect! It is a little tricky: On the dialog OnSohw you need to send … | |
Re: Well, you can format a number into string, or a date into string, but formating a string... it is just not the word, it is more a transformation... well, who minds about the name! In your case, you just want to change all '-' with '', so you onlky need … | |
Re: Easy: One of them uses the other in the interface (on top of the code), while in the other one, after the "implementation" clause, you add a new "uses" -if it is not there by now- and add the unit you need. In that second unit, the classes defined in … | |
Re: "Screen.Monitors" has a list of installed monitors, and Forms have the "monitor" property where you could try to fix where you want it to appear in the FormCreate event... have you tried this (i don't have 2 monitor here to give it a try)? (All this info just typing "monitor" … | |
Re: Click on fayyaz name on one of his post, on the profile page, go down and press "Send message", so a private message is sent to him, and delivered to his personal email... well, I will do it that way instead of using the forum ;-) | |
Imagine I want to see all code snippet on delphi only... I can't! From web development I can jump to delphi FORUMS, not to delphi SNIPPETS, and in the "Revamped code snippets" page, I can't filter on a languaje... Isn't it the most basic feature on a code repository mixing … | |
Re: Supposing the 30 TEdit are in a TPanel called Panel1, I would do it like this: [code] for i:= 0 to 29 do TEdit(Panel1.FindChildControl('E'+IntToStr(i))).Text:= a[i]; [/code] This is the most similar to your example it can get, but, I would do it a little more robust: [code] for i:= 0 … | |
Re: In the OnNotify event, do you set Notify:= true again? You should. Read a little more about it here: [URL="http://www.delphipages.com/forum/showthread.php?t=78624"]http://www.delphipages.com/forum/showthread.php?t=78624[/URL] | |
Re: andrewgalpin: your code count SPACES, not words... try it out with this text "hello bye", you won't get a 2, instead you will get the spaces between words... is NOT the same, and if you try to detect "first space" from "subsecuent spaces", then you end up with the original … | |
Re: If you have ONE table, you can't append two dataset... something is not right in your question... if you have " tables and want to mix them into a single query, you should try UNION, as far as you are accesing those record via SQL. With the info you sent, … | |
Re: A link to a screenshoot would be of help, I don't know what kind of puzzle you are trying to achieve... It sounds to me like a work for a TStringGrid better that any TRichEdit, as you can place text inside "excel like" grid and manage it very freely. | |
Re: 1) ScrollBox, as any other componet, use positive positions, having the origin (0,0) on top-left, so you can't place anything above the top, it would be a negative value on top property, so it will be clipped away. The only work around -if you realy need to do this- is … | |
Re: There is a very good unit called Launch.pas out there in the net, i grabbed it time ago and have added more functions over the time (not in the authors initial text, sorry), like one to wait until some exe drop below 1%CPU usage. I copy it here so you … | |
Re: Why do you need to activate the hint (Application.ActivateHint(P)) by code? If grid.showhint is true, just changing the hint text should be ok... have you tried it without this line? Anyhow, the application.onhint event is tricky, for a component that can have several instances on one app, using this event … | |
Re: Yuo can use a 0 to 4 counter from a intenger incremented one by using (iRTeller mod 4), and aduust visibility by using a Visible:= ((iRTeller mod 4)=1), so your big code get this small (also note my different indentation, far more legible for me): [code] procedure TfrmRobot.tmrRobotTimer(Sender: TObject); begin … | |
Re: You can do it by using a TOleContainer component placed on your form, read the help on this componet, you have all you need in there, also you can "mix" word menus with yours if neccesary. | |
Re: Just doing a "round(YourDate-now);" (both TDateTime or TDate) would do the work, but, you are supposing the user won't play with the system clock to fool your system! | |
Re: Have you checked the rave help for a savetofile or savetocsv? Do you need the raw data or the report as an image? Do you need it to be automated from code, or just a way the user can do it for a given on-screen report? Anyway, try using a … | |
Re: You need a special component to do this for you, if you don't want to code each dot of the graph by yourself directly to a canvas... My Delphi 7 has a built-in DBChart componet on the DB control palette, drop one on your form, select it, and press F1 … | |
Re: Your grid is a TDBGrid or a TStringGrid? Your problem is to calculate those totals or to add them to the Grid? Anyhow, those kind of things will need you to code them, and, in a DBGrid you won't be able to "add a last line" as each line represent … | |
Re: The code you supplie DOESN'T do what you claim, it export each field in a separate row, don't mix any number of rows into a single one anyhow... so adding the town at the end is not the problem herte... isn't it? |
The End.