Blue_Drache Posted January 27, 2005 Posted January 27, 2005 (edited) Case ($splitscreen[$q] = $fname And $splitscreen[($q + 1)] = $dobMon & $dobDay & StringRight($dobYear,2)) Or _ ($splitscreen[$q] = StringLeft($splitscreen[$q] & $splitscreen[($q + 1)],9) And _ $splitscreen[($q + 2)] = $dobMon & $dobDay & StringRight($dobYear,2)) I'd like to take this opportunity to point out an interesting feature that I use quite a bit. Conditional grouping. The above example is used an a rather large loop that looks at screen scrapes that have been stripped and split into an array. The name field holds a maximum of 9 characters. In plain english, it is looking for: 1. the contents of the current array container have to be equal to the first name (aquired earler) AND the contents of the next container have to be equal to the date of birth. If one is not true, I will also accept (OR) 2. the contents of the current array being equal to the contents of the current array sandwiched up next to the contents of the next array AND the contents of the array after that being equal to the date of birth. Simplified Diagram: (a. AND b.) OR (c. AND d.) The reason is, sometimes I get a first name that has two parts. I.E. "Billy Joe" or initials like "C J" This feature allowed me to step over a small hurdle in my way to coding an application that would do my work for me. Edited January 27, 2005 by Blue_Drache Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now