1,826 Topics
| |
Am trying to read strings from a html page to get settings the following javascript strings i like to be able to read. <script type="text/javascript"> PP['channel'] = "testchannel"; PP['channel_id'] = 39388311; PP['channel_category'] = "gaming"; PP['channel_meta_game'] = "wow" PP['channel_is_featured'] = false; </script> would be nice that i can pick the data … | |
I used to do a bit of programming in Turbo Pascal but since Microsoft eliminated DOS I don't know how to set up the compiler in Windows XP or 7. Can anyone advise how I can continue to use Turbo Pascal? Thanks I got this reply "TP will still run … | |
I am working on my first Client server program. The client will have to connect to the server however there is no way to know what the server ip will be so this needs to happen dinamically, at least the first time the program runs. The clients will receive strings … | |
So... I am sorry if I have posted the question at the wrong place, yet I couldnt find a better place. Anyway, my problem is as follows: A week ago, we had to bring back to life some old projects of the firm. The projects are ... not too complex … | |
plz i need a pascal prog which input 2 values,call dem A and B.print the value of the largest variable. (2)modify the prog above to accept 3 values A,B,C and print the largest.tanx. | |
Hello Once again, I'd need your help. I was messing around (if I say so, although I only set the formstyle properties to mdiform and mdichild once, and then reset them to Normal, ever since my problem appears) formstyle property, and got some strange behaviour for which can't seem to … | |
this is an assignment i recieved i have been trying to get it to work but it wont.i edited a couple times but i still get the same messages can anyone assist? The purpose of the program is to assist with the check-in and searching of guests registered at the … | |
How to generate random number in Free Pascal between 1 and 1,000,000? I have used a variable type as LongInt, Real, Integer, but there is always an RangeError. But random number between 1 and 33,333 is working correctly. Program Random; var a: ...; begin a:=random(1000000); end. | |
Depending on a variable 1-7, I am interested in ANDing a byte value to to get that number of bits. Currently I'm doing this: function getMaskedBits(num, Bit_location: Byte): Byte; var masks: array[1..7]of Byte=(127,63,31,15,7,3,1); begin Result:=num and masks[Bit_location]; end; is there a better (or more efficient way of doing this?) | |
This procedure is called just before the answer is written to a binary file to ensure it is in the correct format. It works but I need it to repeat until it is an integer. I was trying to use a 'repeat','until' but wasnt sure what the 'until' condition woudld … | |
Hi, I'm a bit of a newbie to Pascal and I'm trying to create a simple program to convert binary numbers to decimal, I'm unsure of how I can disallow an input that is not binary, this is my code: var Validation : boolean; Binary, Number : String; Decimal, index, … | |
Morning, I am loading an xml file where i want to search low level node name if exists. For example: <xml> <A> <B> <c></c> <d></d> </B> </A> </xml> so i have IXMLDOMDocument and IXMLDOMNode, i need to load an existing xml file and to search the node <d> where i … | |
I need help to Write a PASCAL program that reads in ten values and then sort them using the bubble sort method | |
Morning, I am new to xml with delphi. My problem is that i know how to build am xml file, the output is something like this: **<EXPORT> <IMPORTMODEL>1</IMPORTMODEL> <SESSION></SESSION> <STARTDATE>26-01-2011</STARTDATE> <ENDDATE>26-01-2011</ENDDATE> <VOUCHERS> <VOUCHER> <AUTHOR> X </AUTHOR> <INPUTDATE>1/23/2013</INPUTDATE> <REFERENCE>M1000009</REFERENCE> <ONDUPLICREF>N</ONDUPLICREF> <JOURNALTYPE>STANDARD</JOURNALTYPE> <DESCRIPTION>This is a test for the description of the voucher … | |
Hello, I need some help replacing special chars like 'à,é,è,...' in strings with their corresponding ascii char values. I do know the string replace method thus replacing these special chars with normal alphabets, with the example below: `$vSomeSpecialChars = array("á", "é", "í", "ó", "ú", "Á", "É", "Í", "Ó", "Ú", "ñ", … | |
Hello all, I once had a program (.exe) that was a delphi tutorial, you could click an option and it would show you what it did and tell you how to do it.. i lost it in a format and im unable to locate it!, could someone point me in … | |
Hi everyone,plz i need help from anyone to check if this program is writthen correctly { A program to read two values A and B and print the highets value } Val A : integer ; Val B:integer ; Begin A : =10 ; B:=12 ; if A > B … | |
Hi. So, just switched to RAD XE3 to use Metropolis UI feature, and therefore started to completely rearrange and redesign my app to make it a little nicer, only this time I've chosen FireMonkey Metropolis App, since it has some good components, such as TSwitch (slide switch). Everything seems to … | |
Hello again. I'm having issues finding any advanced info about touch support in Delphi. At the moment, I can't seem to find a way to add the scroll functionality to my app, so that it'd work as on metro apps in Windows 8 (such scroller as the Metro Internet Explorer … | |
Hi, I need help with coding so I can see the WORK week. In this code I only see the whole week. "glob_calendar_id:=oOutlook; //Store object ID oOutlookCOM:=oOutlook.GetComObject; oOutlookCOM.Folder:='Calendar'; //Calendar view oOutlookCOM.View:='Week'; I need to see WORK week. Help please... | |
Hello. I wonder if anyone can tell me something about calling the external dll file from delphi. I have a main form, which has the procedures locating the dll file, and then I have about 30 other forms, in which I use these commands. Now my question is, is it … | |
can any one pleace help me to code this program i have no idea how to do it. it will be very greatful if any one can help me thanks | |
please give me instructions? and what files should be in burning ? | |
I have a project at school in which I have decieded to make an encryption system which I am struggling with quite a bit at the moment - just finding resources to use and even a guide to follow. The only half decent thing i can find on the web … | |
When formatted text is pasted from MSWord to a TRichEdit control, the bullets are well formatted (on the display) but after; Fetching the rtf data from the TRichEdit control using TStringStream, Saving the stream's DataString to a database and then Loading the saved rtf string back to the TRichEdit control … | |
Hey guys I am trying to prompt the user to input a file name, and save that file name into a packed array of characters then use that inputed flename to perform some opertions. FileName : text; Line = PACKED ARRAY [0..79] of char ; writeln('Please input a file name … | |
Hi, I am in need of converting a project which is in Delphi 5 to Delphi XE2. When I run the same Delphi 5 code, in XE2 , I get some errors. In Delphi 5, we have used NMFTP component for file transfers. But here netmasters is not available. Instead, … | |
I am fairly new to Pascal and I have been attempting to write a hangman game. I am aware that there are probably so many better ways to do this than I have done but I am having some problems where the exit variable is not met because the current … | |
Okay, so I have a program that deletes an entry from the database. It is linked to the program with an ADOQuery. How can I check if a record with a certain primary key exists in the database? And then it has to take that ID, and then report to … | |
Please guy's how do I solve this question using pascal? just new here and in programming. Am using free pascal. In the given string of characters move all the letters to the beginning of the line, and digits to the end of the line. For example: the string "a13Bc1de2F G.! … |
The End.