Posts

Showing posts from June, 2005
Why not start with a "How Stupid..."? I have been working in both VFP and .NET lately, and recently had a "blonde" moment due to the fact that in VFP, everything is 1-based, whereas in .NET, everything is 0-based. In VFP, if you want to search for a string within a string, VFP has a function called AT(), which returns the starting point of the string within the string. If the string cannot be found, AT() returns 0. I wanted to create the .NET equivalent of the following VFP code:    lcEmailMessageBody = "<html> ...."    IF AT("<html",lcEmailMessageBody)>0 THEN       SendHTMLMail(lcEmailMessageBody)    ELSE       SendTextMail(lcEmailMessageBody)    ENDIF So I create the following .NET equivalent:    lcEmailMessageBody = "<html>....";    if(lcEmailMessageBody.IndexOf("<html")>0)       SendHTMLMail(lcEmailMessageBody);    else       SendTextMail(lcEmailMessageBody); Pretty straightforward, n'est-ce pas
Welcome to my blog! My name is Rick Hodder and this is my blog. A little about me. I'm a computer programmer by trade, but my interests/hobbies include: Improv Comedy : Both short form (a series of games like the show Whose Line Is It Anyway? ) and long form (the audience is asked for words or phrases, after which a half hour show is created on the spot). I have taken classes and have been an ensemble performer at Gotham City Improv in New York City. GCI was started by a group of "improv"ers from the famous LA improv group called "the Groundlings." I find improv a great way to "get out of my head" - its amazing where your mind can take you. I especially enjoy the fact that you don't prepare: no scripts, just what happens, and how you react to it. You create your own reality, and watch it change as other performers embellish. It's also great for thinking on your feet. Community Theater : I have been involved in theater since highschool. The la