- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 3
- Posts with Upvotes
- 3
- Upvoting Members
- 2
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
41 Posted Topics
Re: [QUOTE=EnderX;506467]I'm working on a Delphi program designed for use with an Access database. In addition to the onscreen output, however, my boss wants me to provide PHP reports for it as well. We have PHP installed on our servers, so that's good, but the database in question is installed on … | |
Re: [QUOTE=mangophp;445371]I need to find the information about Client machine by using Javascript : Information like : How much Avaliable sapce on clinet's machine ? Need to find RAM size . Operation System. Can we have any built in Active X control to get all these values ? Thanks in advacne, … | |
Re: Perhaps, I haven't fully understood your question but it seems to me that you are going about things in a somewhat complicated way. Firstly, by far the neatest way to add entries to a list view goes something like this [LIST] [*]Use the ListView.Items.Add method to add a new row … | |
Re: Your best long term bet would be to start using the TNT component suite. It is no longer freeware but you can still get an updated version of the last freeware version here [URL="http://mh-nexus.de/en/tntunicodecontrols.php"]TNT Controls[/URL] By and large TNT controls are a drop in replacement for the equivalent Delphi ones. … | |
A print-ready MySQL quick reference is available <URL SNIPPED>. Registration (free) is required for access to a more legible version. An extended version of this card that covers the MySQL SQL dialect in detail is in the works. Enjoy! | |
Re: Wow! With a code listing like that it is scarcely surprising that you have got no replies. I haven't read all your code - and chances are no one else will - but here is, I hope, a partial solution 1. You appear to have a great deal of CSS … | |
Re: [QUOTE=PomonaGrange;681005]Hi, I was wondering, if it is possoble (or how to) include a php file with a get form value passed. For Example: states.php?state=NY. This file would be incuded into another php file so that it would display only the items that would be in NY state. Anyone know how … | |
Re: [QUOTE=evstevemd;593413]Hello here! I'm newer new to PHP. I haven't even started. What softwares and tools and Books that I need to start? I love simple web programming! One friend told me it is easier with XHTML and CSS but there is no place here for that Langueage. I think I … | |
Re: [QUOTE=cwarn23;636376]A few weeks ago I was in the same situation and I would recommend the following books: [LIST] [*]PHP MySQL Web-Development All-in-One-Desk-Reference For Dummies [*]PHP5 and MySQL Bible / By: Tim Converse and Joyce Parks, with Clark Morgan. [/LIST] Also the following google search term: [I]site:[url]www.php.net[/url] mysql[/I] Note that the … | |
Re: Sheady, It is never very easy pinpointing errors based on very long code listings such as yours. Having taken a brief look at your code I have several suggestions to make [LIST] [*]In my book any object procedure that exceeds around 20 lines of code needs to be broken up … | |
Re: [QUOTE=andrewblack;593347]Or may be i divide program to some dll file that contain form and function?[/QUOTE] Brief answer is take a look at using interfaces. In case you are not familiar with the concept [LIST=1] [*]An interface is used to declare an intent to provide certain services [*]By services I mean … | |
A cheatsheet covering the core features of PHP 5 is available here [URL="http://www.explainth.at/en/qr/phpqr.shtml"]PHP5 Cheatsheet[/URL] Free to print, share and enjoy. | |
Re: I think the right answer here is - don't bother. Wanting to hide CSS, HTML and JavaScript is [LIST=1] [*]difficult if not impossible [*]quite against the spirit of the web - at one time or another we have all benefited from looking at other peoples' code so you shouldn't complain … | |
Re: You should consider redesiging so you don't use popup windows - chances are the user's browser will block it. Consider creating a popup effect using CSS + HTML instead. | |
Re: There are two ways to handle error [LIST] [*]onerror - which just allows you to carry on gracefully when there is an error but takes little corrective action [*]The try..catch code block that allows you to trap the error and deal with its consequences [/LIST] I discuss this, and many … | |
Re: [QUOTE=Petez;563092]Hi well ive got school project and well found this site looks like real deal not like the fake ones ive registered 2 and this site can really help?... Well ive done most of my programmeing just cant figure the search code i cant get..... I need to say type … | |
Re: Not sure why you have two integer variables x and Counter. Surely, you could work with Counter alone, couldn't you? | |
Re: [QUOTE=adrive;494218]I'm just curious, I was using setLength to increment my arrays all the while but i've been hoping.. is there any push and pop functions for delphi so that i can dynamically put values into my array without having to code anything myself to increase the array size?[/QUOTE] ADrive, pushing … | |
Re: Don't know if you are still looking for a better solution Alastair but here is one anyway. It uses Delphi but given that it relies on the CoCreateGUID function to generate random sequences you should be able to implement something similar in Pascal on Windows as well as in NIX. … | |
Re: You appear to have got a nice conversation going Lynxus & Duos so I hesitate to butt in. However, having looked at the original post there are a few issues that struck me so I thought I would comment. [LIST] [*]Running a [B]case[/B] statement block each time you want to … | |
Re: You need to be more precise when you post questions of this sort. Brief answer is - hard to tell unless you tell us which DB. Unless it is something really obscure you should have no trouble connecting to it using ADO. There is no dearth of ADO components around … | |
Re: [QUOTE=t3rdac;507152]Hello, I'm looking for the about using USB port with a Microchip microcontroller, and I don't know what to do. I already did something similar with the RS232 serial port and worked.[/QUOTE] There is an excellent freebie DLL called inpout32.dll which makes it very easy to interface with all kinds … | |
Re: ADrive, it may be possible that you have not fully understood just how Delphi typecasts work. First thing first - though not wrong, it does strike me as odd that you should assign the object you want to typecast as a TObject - I would have used a raw pointer. … | |
Re: [QUOTE=fayyaz;495009]Dear Duas Thankyou for Your Answer. about your question I mast Say No I want to changing format of OS time by sume Delphi instructions[/QUOTE] One way would be to change the Windows Registry settings directly. The entries you are looking for are the sLongDate, sShortDate and sTimeFormat strings under … ![]() | |
Re: [QUOTE=Duoas;494958]Use a loop: [code=Delphi] var total: double; cntr: integer; begin total := 0.0; for cntr := 0 to ListBox1.items.count -1 do total := total +strToFloat( ListBox1.items[ cntr ] ); showMessage( 'The total is ' +floatToStr( total ) ) end; [/code][/QUOTE] Might I suggest two changes [LIST] [*]Rather than doing ListBox1.items … | |
Re: [QUOTE=infomanas;487777]Hi, maybe can you can help me. I need to write a pascal a program [B]which would read text file from hard disk and would sort all text's words to 3 columns, and would save results to the another file. Let's say that we have no more than 1000 words … | |
Re: Lynxus, I guess you are coming to Delphi from a Pascal background? In general it doesn't make much sense to use the Pascal file functions in Delphi. Streaming data to/from disk is better handled using the TFileStream and TMemoryStream classes. In your case, even that is not necessary - just … | |
Re: [QUOTE=squidd;483539]I have one form that is doing a security check. if the serial number or whatever is found, then a button will appear to open the actual program. Welp, that isnt working out so well. How do I have a Tbutton open another form and close the first form? This … | |
Re: [QUOTE=squidd;473290]Code is as follows: 1: This is what I posted for the alphabetical and [i]some[/i]numerical values in the list that is loaded. [code=delphi] procedure TMainForm.SortListButtonClick(Sender: TObject); begin ListView1.SortType := stBoth; CurrentStatusLabel.caption := 'List Sorted'; end; [/code] I would like to also sort it from z - a... that is the … | |
Re: Hello Sqidd, May I suggest that you get hold of Danny Thorpe's book on Delphi programming? The last time I checked it was out of print but available second hand on Amazon at over $100. A lot of money but money very well spent. There are a number of things … | |
Re: I hope I am understanding your question correctly. It seems to me that what you want to do is to evaluate an expression? If that is the case [LIST] [*]The expression as it stands is merely a string. [*]You need to parse that expression - unlike VB and Javascript Delphi … | |
Re: After having struggled to ensure that automating Word from Delphi always works - any OS, any version of Word... I finally ended up creating RTF files instead. This always works, there are no black boxes and you have complete control over the look and feel of every aspect of the … | |
Re: Guess you are not looking for an alternate solution any more but in case you are - the best thing to do is to create a console app. You should only need to code one unit and from there do the email sending in the [B]initialization[/B] section, do any residual … | |
Re: [QUOTE=gastan;451447]Hello. I would like to show a multiline caption on a button, but with the second line in bold. Can somebody do it? Currently I have a multiline caption, but don't know how to draw text in different font styles (color, style, size, etc.) within one button. (Delphi 2006) Thanks … | |
Re: [QUOTE=dodol;445884]Hi all, I have a case. Example: In Windows, I click a test.doc. my program running than it showmessage test.doc. and and then I click again dodol.doc.. my program is running... and it show message dodol.doc. any program I open.. It show the message (the file name).. How to create … | |
Re: [QUOTE=EnderX;447537]I am working with a delphi form that appears to have a rather interesting problem. I am developing on a laptop sitting at 1920X1200 resolution. On my form, I have a trio of components. One is permanently invisible, and clicked to align/left. The next is permanently visible, and clicked to … | |
Re: [QUOTE=dinkle;445356]I am new to deplhi coding and need help and examples when it comes to browsing files, pulling out data from files, looping, retrieving data, saving files. Any links to examples or any thing pls help. Thanks[/QUOTE] There are several sources [LIST=1] [*][URL="http://www.torry.net"]Torry[/URL] is the leading source of Delphi shareware … | |
Re: You should be able to adapt the code on this page [URL="http://www.explainth.at/en/color/colcons.shtml"]Interactive Color Calculator[/URL] to your needs. Just check out the HTML and Javascript sourcecode - it is free to use, just make sure you acknowledge its use. You can download the Javascript code here [URL="http://www.explainth.at/downloads/colcal.zip"]Javascript Code[/URL] The calculator allows … | |
Re: You [B]can[/B] get away with just writing type TMyObject = class as you have done but it is not really the way Pascal and Delphi are supposed to be written. You are better of specifying type TMyObject = class(TObject) However, that is not the source of your problem. Actually, I … | |
Re: If I have understood your question correctly what you are trying to do is this [LIST] [*]You have two Delphi applications [*]You want to run App A from App B [*]You want to debug App B [/LIST] From what I can tell you are going about this by running App … | |
Re: You can certainly do what as Matt suggests. However, in the longer term if you plan to use JS a lot you would be better of learning to use regular expressions. Not necessary in this instance but the power they offer is well worth having under your belt. Here is … |
The End.