Log in

No account? Create an account

Previous Entry | Next Entry


Sometimes, I really hate trying to figure out the coding that I need to do for a script. *bangs head against wall*


( 5 comments — Leave a comment )
Feb. 4th, 2005 06:10 pm (UTC)
oh yeah, I totally know what you mean.

not really, just trying to be supportive
Feb. 4th, 2005 06:29 pm (UTC)
What type of script? Maybe by talking it out you'll find out the answer.
Feb. 4th, 2005 06:56 pm (UTC)
It was a script to remove all but the alphabet from any variable passed to it. So, for example, passing "Me'Shell Ndege-Ocello" would result in "MeSehellNdegeOcello"

I was making it much more complicated than it needed to be, but my cry for help worked out...

Function StripName(strName)
  Dim i, c , a
  For i = 1 To Len(strName)
    c = Mid(strName,i,1)
    a = Asc(c)
    If a > 64 And a < 91 Then StripName = StripName & c
    If a > 96 And a < 123 Then StripName = StripName & c
End Function

I felt rather dumb...
Feb. 4th, 2005 07:09 pm (UTC)
And to think, if I had not switched majors I would know exactly what you're talking about...
Feb. 4th, 2005 07:50 pm (UTC)
Gee, that's interesting. I hate the *de*coding I need to do for a script. *bangs head on piano*
( 5 comments — Leave a comment )