quickTip

ColdFusion Dynamic Argument Naming in Method Calls

I created a custom tag recently that required a method argument name be passed as an attribute. While I’m familiar with the usual techniques of using dynamic variable names, they didn’t work in this situation.
Here’s what I was attempting to do:
Main Page

<cfmodule template=”customtags/deleteRecord.cfm”
idValue = “1″
idColumn = “colName” />

Custom Tag

<cfset obj = createObject(“component”,”com.mycomponent”)>
<cfset qRecord = [...]

coldFusion, quickTip

AS3 Simple Color Code Converter

I just finished writing my first AS3 application. Part of its functionality allowed a color code to be passed in as a variable. The problem I ran into was that the color code was being passed by web developers. Instead of “0xFFCC00″ they would pass “#FFCC00″. Understandable mistake, but garbage to Flash, so the custom [...]

as3, flash, quickTip

Retrieving Records with Max Values using TOP

I know I know, it’s a horrible title. If anyone has a better suggestion please let me know!
Here’s what I’m talking about:
I have two tables; the first table contains unique records describing games and the second contains game ids, scores, and user ids. Game id is joining the first table to the second [...]

quickTip, sql