Results 1 to 5 of 5

Thread: Help!!!! Why Doesn't This Work?? Arghh!!!!

  1. #1
    spetnik
    Guest

    Angry Help!!!! Why Doesn't This Work?? Arghh!!!!

    Can anyone tell me why this doesn't work????
    VB Code:
    1. Option Compare Text
    2.  
    3. Sub Main
    4. Dim objEmployee as MicrosoftCorp.Employee
    5.  
    6.     For Each objEmployee In Microsoft.Employees
    7.         If objEmployee.fullName Like "Bill Gates" Then
    8.             Call doPainfullDeath(objEmployee)
    9.         Else
    10.             Set objEmployee = Nothing
    11.         End If
    12.     Next
    13. End Sub

  2. #2
    Frenzied Member
    Join Date
    Feb 2001
    Posts
    1,140

    Re: Help!!!! Why Doesn't This Work?? Arghh!!!!

    Because his birth name isn't Bill. Besides, I'm not sure setting the other employees to nothing helps.

    VB Code:
    1. Option Compare Text
    2.  
    3. Sub Main
    4. Dim objEmployee as MicrosoftCorp.Employee
    5.  
    6.     For Each objEmployee In Microsoft.Employees
    7.         If objEmployee.LastName Like "Gates" Then
    8.             call doPainfullDeath(objEmployee)
    9.         Else
    10.             if !(ReTrain(objEmployee)) then Set objEmployee = Nothing
    11.         End If
    12.     Next
    13. End Sub

    I'm not sure what Bill's name is, so we will just have to do away with all the employees with the last name of Gates.
    Travis, Kung Foo Journeyman
    As always, RTFM.

    WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
    Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
    YBMS, but Mozilla doesn't.

  3. #3
    spetnik
    Guest
    still doesn't work

  4. #4
    New Member Admin's Avatar
    Join Date
    Jun 2001
    Posts
    3
    I'm pretty sure it's William Jefferson Gates (his fornames he shares with Bill Clinton)
    I'm the big bad boss man

  5. #5
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    William Gates III
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width