<--- --------------------------------------------------------------------------------------- ---- Blog Entry: String Tokenizer ColdFusion Component That Can Handle Qualified Fields Author: Ben Nadel / Kinky Solutions Link: http://www.bennadel.com/index.cfm?dax=blog:491.view Date Posted: Jan 26, 2007 at 5:17 PM ---- --------------------------------------------------------------------------------------- ---> // Set up an instance structure to hold instance data. VARIABLES.Instance = StructNew(); // This will hold the original string passed in by the user. VARIABLES.Instance.OriginalString = ""; // Set the default delimiter and qualifiers. VARIABLES.Instance.Delimiter = ","; VARIABLES.Instance.Qualifier = ""; // This will hold the index of the previously returned token. VARIABLES.Instance.TokenIndex = 0; // This will hold the data for the raw tokens. These are related to // the tokens returned, but not exactly the same thing. VARIABLES.Instance.RawTokens = ""; // This will keep track of where we are in the raw tokens. VARIABLES.Instance.RawTokenIndex = 0;