You can create a function for logging system
Flex: My First Flex / Facebook Application by chrisaiv
Specifications of the TOPIC database format, a standardized structure for plain text databases that's easy to read and edit in most text editors, and easy to programmatically parse as well.
C++ code snippet for function pointer to member function of class
Example source code for function pointer to member function of class
In Delphi, procedural types (method pointers) allow you to treat procedures and functions as values that can be assigned to variables or passed to other procedures and functions. Here's how to call a function (or procedure) as a parameter of another function (or procedure) : Declare the function (or procedure) that will be used as a...
Simple but utilitarian function returns a numeric array of associative arrays containing an entire result set.
We have created our first function, but a function usually need one or more parameters, so let us have a look at that. The next function is a simple echo function which just print the text to screen.
PHP function example that writes a name when it is called.
Simple way to do the opposite of what the nl2br() function does- turns breaks () into new lines.
Allows for the creation of calendars in HTML pages
You can define parameters with three types of parameters. 1. IN - The parameter can be referenced by the procedure or function. The value of the parameter can not be overwritten by the procedure or function. 2. OUT - The parameter can not be referenced by the procedure or function, but the value of the parameter can be overwritten by the...
An example code for Delphi function to check drive letter to see if its valid
This little function comes in handy. There's nothing worse than seeing a site with a copyright out of date.
Connects to a database, and runs a query
An example PHP function return a value, use the return statement.
This will work in any browser on any element, to support styling changes on hover.
Call Function with Random Timer
Two objects are included here, a reader and a parser. All you need to do is instantiate the xmlParser object and let it do the job for you. nextToken() will return the next token, which can be a tag or the text between 2 tags. the isTag() will determine if this is a tag so you can do something smart with it. Lastly you can jumpTo($tagname) if...
The following code snippet shows you how to create an alternative DoEvents function by using Win32 API calls. Be aware that accelerator keys won't work properly with this alternative function.