Monday, September 25, 2006  

The wpsCsvParser has been updated to support parsing Tab Separated Value files. You can specify the value separator type by setting the new ValueSeparatorType property to either vsCsv or vsTab. Or you can set the ValueSeparator property to any character you wish to use as the separator. The default is vsCsv for CSV parsing.

posted by Kirby | September 25 11:29 AM | comments (1)


Wednesday, September 20, 2006  

Weird Al's new video White & Nerdy is too funny. He even makes a reference to my favorite programming language Pascal saying "At Pascal, I am number one".

posted by Kirby | September 20 03:37 PM | comments (5)


Tuesday, September 12, 2006  

I wish I was having one of these days today.

posted by Kirby | September 12 10:45 PM | comments (0)


Monday, September 11, 2006  

A new version of the wpsCsvParser has been posted to the White Peak Software web site. Thanks to Stephan Hilchenbach for providing the fix to the bug that caused the parser to ignore the last field on a line if the field is empty.

posted by Kirby | September 11 11:15 PM | comments (0)


Tuesday, September 05, 2006  

Nick Hodges, Delphi Product Manager, has been busy for the last 22 days piecing together the Thirty Camtasia Demos in Thirty Days for Delphi. These short videos are the perfect tutorials for those new to Delphi.

posted by Kirby | September 5 10:33 PM | comments (9)
 

I updated my Delphi CSV Parser to include .NET support. TwpsCsvParser can now be compiled for Win32 and .NET applications using Delphi. To download the code with sample Win32 and .NET applications, visit the Delphi CSV Parser page at the White Peak Software web site.

Don't have Delphi? Visit http://www.turboexplorer.com/ and download the FREE Turbo Delphi Explorer or Turbo Delphi for .NET Explorer.

posted by Kirby | September 5 10:20 PM | comments (1)
 

JavaScript once again kicked my butt last night. Well, it was the combination of JavaScript and IE because my initial code worked fine in Firefox. Here's the story.

I have a search form that uses AJAX to retrieve search results based on user submitted criteria. The results are displayed in a table dynamically created using JavaScript. The problem, however, was the results were being appended to the end of the existing table data. I needed a way to clear the table contents prior to adding the latest search results.

My first approach was to set the innerHTML property of the TBODY element from the results table to a zero-length string. For example:


var ctrl;
ctrl = document.getElementById('searchTBody');
ctrl.innerHTML = '';


This works fine in Firefox but it causes problems under IE. A different approach is needed. A couple of google searches turned up the removeChild method. Using it you can iterate through the childNodes collections to remove each child within the element. So I wrote the following JavaScript function:


function removeChildNodes(ctrl)
{
while (ctrl.childNodes[0])
{
ctrl.removeChild(ctrl.childNodes[0]);
}
}


To remove each child node from an element, get a reference to the element and pass it to the removeChildNodes function. For example:


var ctrl;
ctrl = document.getElementById('searchTBody');
removeChildNodes(ctrl);


This approach works for IE and Firefox.

posted by Kirby | September 5 06:14 AM | comments (6)


Friday, September 01, 2006  

You have BDS 2006 right? Did you see the latest marketing campaign that includes the following 3rd party applications (full versions, not trial)?

Castalia
CodeHealer
Beyond Compare Differ
BuilderBooster(tm)

Registered users of BDS 2006 are also entitled to the FREE bundle. Just go to the download site and click FREE 3rd party tools.

http://www.borland.com/downloads/registered/download_bds.html

I've been a Beyond Compare user for years. It's a great piece of software. Not only can you compare files, but you can compare directories, and, get this, compare FTP sites. The ability to compare with FTP sites is awesome.

Thanks for the 3rd party bunlde DevCo!

posted by Kirby | September 1 07:54 AM | comments (0)
Copyright © 1999-2008 Kirby Turner.
Site software written by White Peak Software Inc, a provider of custom software and software development coaching.