1,826 Topics

Member Avatar for
Member Avatar for Simon180

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 …

Member Avatar for pritaeas
0
1K
Member Avatar for Lennox

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 …

Member Avatar for Lennox
0
1,000
Member Avatar for Qazinix

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 …

Member Avatar for Qazinix
0
319
Member Avatar for astian

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 …

Member Avatar for pritaeas
0
650
Member Avatar for joejodre

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.

Member Avatar for pritaeas
0
154
Member Avatar for cucolino

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 …

Member Avatar for cucolino
0
286
Member Avatar for canadaaaaa

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 …

Member Avatar for blesiw
0
423
Member Avatar for hambu

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.

Member Avatar for cereal
0
329
Member Avatar for davecoventry

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?)

Member Avatar for davecoventry
0
111
Member Avatar for Blousey17

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 …

Member Avatar for pritaeas
0
236
Member Avatar for Niatia

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, …

Member Avatar for pritaeas
0
326
Member Avatar for jaron1611

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 …

Member Avatar for pritaeas
0
56
Member Avatar for jameosa

I need help to Write a PASCAL program that reads in ten values and then sort them using the bubble sort method

Member Avatar for pritaeas
0
251
Member Avatar for jaron1611

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 …

Member Avatar for pritaeas
0
214
Member Avatar for Ritesh_4

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("á", "é", "í", "ó", "ú", "Á", "É", "Í", "Ó", "Ú", "ñ", …

Member Avatar for pritaeas
0
293
Member Avatar for DatSik

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 …

Member Avatar for pritaeas
0
145
Member Avatar for joejodre

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 …

Member Avatar for joejodre
0
122
Member Avatar for cucolino

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 …

Member Avatar for cucolino
0
457
Member Avatar for cucolino

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 …

Member Avatar for pritaeas
0
573
Member Avatar for Floppy1

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...

0
151
Member Avatar for cucolino

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 …

Member Avatar for pritaeas
0
288
Member Avatar for gameguy91

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

Member Avatar for pritaeas
0
104
Member Avatar for jfraizer
Member Avatar for Ben Ashton

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 …

Member Avatar for Ben Ashton
0
891
Member Avatar for KE50

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 …

Member Avatar for pritaeas
0
276
Member Avatar for alex910TN

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 …

Member Avatar for alex910TN
0
185
Member Avatar for DelphiXE2User

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, …

Member Avatar for pritaeas
0
338
Member Avatar for TimBob12

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 …

Member Avatar for pritaeas
0
277
Member Avatar for Fireprufe15

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 …

Member Avatar for pritaeas
0
65
Member Avatar for wisuju

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.! …

Member Avatar for pritaeas
0
72

The End.