Our text file contains 10 words,and located in C:\ drive,we will read this data into an array and write out the results to the screen Created by FlamingClaw 2009.04.26.

Member Avatar
Member Avatar
+1 forum 1

This snippet shows how you can get the headers for an URL, for example to detect a redirect. I had to use the ANSI functions to ensure correctly returned headers. Manual entry for [HttpQueryInfo](http://msdn.microsoft.com/en-us/library/windows/desktop/aa385373(v=vs.85).aspx). Let me know if you have any questions/remarks.

Member Avatar
Member Avatar
+1 forum 1

The `ReplaceStrings` function replaces all strings in `APatterns` found in `ASubject` with the value in `AReplacement`. As an example, I added the `RemoveStrings` function which replaces everthing with an empty string, thus deleting all strings found. Usage examples are in the XMLDoc comments. A good test will be to rewrite this function to accept regular expression patterns, or write one that accepts an array of replacements, so each sub -string can be replaced with a different value.

Member Avatar
Member Avatar
+0 forum 2

There are many places on internet for great help regarding many things. Proper implementation of really fast routines for sorting data however is not common. I am not claiming these routines to be the fastest around, but their ease of implementation and use may make them welcome. As a thank you to this site for great help regarding some of my questions, I am now posting my own developed routines for making a sorted index of either Integers or Strings. A binary sort routine is basically like what I have written. Coincidence may make the routines look like something previously …

Member Avatar
+0 forum 0

This example is demonstrates a solution for direct arranging By FlamingClaw

Member Avatar
Member Avatar
+0 forum 1

The function Delay() allows access to other events during the delay. For instance a certain key could be used to interrupt a lenghty delay. The Win32 API function Sleep() ignores events, maybe it should be called DeepSleep().

Member Avatar
Member Avatar
+0 forum 4

ShowDriveSerialNo shows it with ShowMessage GetDriveSerialNo returns a string. You don't need both.

Member Avatar
Member Avatar
+1 forum 5

The code demonstrates running program limitted time by following going over endtime expressed in seconds since midnight, so might fail for playing just midnight (add check that endtime is less than 24*60*60 if you want to be sure). Exciting action :) of the program is that it shows remaining time in position moving left and right as you push left and right arrow keys.

Member Avatar
+0 forum 0

I did this code to compare to Delphi code in Delphi forum [URL="http://www.daniweb.com/software-development/pascal-and-delphi/threads/357771"]TListBox and sorting[/URL] which ran in my computer compiled in free Lazarus environment at time 7,235 s for generate and insert to listbox, 13,265 s sorting the listbox.

Member Avatar
+0 forum 0

Hi guys The just of what i whant to do is read lines of text from a file until it reaches a delimiter and then execute that text in a query and repeat the process till there is no more text. I am using Delphi 6(don't have a choice) and the text is SQL in a .txt file The code I provided does not work because it doesn't use the delimiter(defaults to whitespace) and a stringlist is not compatable. If anyone has any advice let me know Great thanks in advance R.

Member Avatar
Member Avatar
+0 forum 5

This is just a simple password program...

Member Avatar
Member Avatar
+0 forum 2

Using FPS IDE with FPC compiler on windows xp.

Member Avatar
+0 forum 0

Procedure which checks the number of eating properly entered in edit box with a comma

Member Avatar
Member Avatar
+0 forum 3

A simple function that converts alphabetic values into their respective lowercase value.

Member Avatar
Member Avatar
+0 forum 1

The arguments are passed by value and by reference

Member Avatar
Member Avatar
+1 forum 5

This snippet shows how to open, read, write and close text files. This skeleton can be modified to handle any type of file, from untyped to text to typed files.

Member Avatar
Member Avatar
+0 forum 3

A function that takes a string and returns the number of words in the string. An example of using pointers in Pascal.

Member Avatar
Member Avatar
+0 forum 2

This small program shows that how we can arrange strings by alphabet in a vector.By FlamingClaw

Member Avatar
Member Avatar
+0 forum 1

Note that the angle is in 1/10 of degrees. Any attempt to manipulate font.size or font.color will reset the angle to zero degrees.

Member Avatar
Member Avatar
+0 forum 1

I want to show a simple example about writing record to a file,and for checking,read back from that file. Created By FlamingClaw

Member Avatar
+0 forum 0

This algorithm will add the searched element's place in an array This works only when there is so element what we're searching for. By FlamingClaw

Member Avatar
+0 forum 0

This algorithm will decide that is there a serched element in the array.If it finds one then the loop halts.If the loop halts cause we're stepping over the last element of the array then there is not searched element. By FlamingClaw

Member Avatar
+0 forum 0

Counts that how many propertied elements are in the array example:negative numbers By FlamingClaw

Member Avatar
+0 forum 0

The Rule: s:=0; Loop i:=1 To N s:=s+T[i]; End of Loop; Out:s; By FlamingClaw

Member Avatar
+0 forum 0

Prime or not?This little program will show prime numbers with green color from 0 to 100.By FlamingClaw;

Member Avatar
+0 forum 0

I want to show you some rules about bit operating like Not,And,Or,Xor,Shl,Shr... By FlamingClaw

Member Avatar
+0 forum 0

I've seen,there are guys that did not know,where to use a unit... See it just reference By FlamingClaw

Member Avatar
+0 forum 0

This little program a solution for putting a string into an array. The method is that the string is divided for chars.... By FlamingClaw

Member Avatar
+0 forum 0

This little calculator can +,-,/,*.Very simple,by FlamingClaw

Member Avatar
+0 forum 0

We change the order of elements of a vektor Created by FlamingClaw

Member Avatar
+0 forum 0

The End.