Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 5 of 5
  1. #1
    Senior Member
    Join Date
    Mar 2002
    Location
    Alabama sans the damn flag
    Posts
    263
    Member #
    38
    Code:
    function pickTable(onearg)   
       Dim ThisSelection
       Dim LeftIndex
       Dim RightIndex
       Dim strTemp0
       dim intTemp0
       Dim intTemp1
       dim intTemp2
    
       picktable = alert(onearg)
    
       
    End Function
    
    ...
    ...
    ...
    
    <tr onClick=picktable('105040302')>
    Not a problem. I get the box and everythings cool


    Code:
    function pickTable(onearg,twoarg)   
       Dim ThisSelection
       Dim LeftIndex
       Dim RightIndex
       Dim strTemp0
       dim intTemp0
       Dim intTemp1
       dim intTemp2
    
       picktable = alert(onearg)
    
       
    End Function
    
    ...
    ...
    ...
    
    <tr onClick=picktable('105040302','9080706050')>
    Big Problem: Cannot use a parenthesis when calling a SUB.

    Ok, Igive. What's wrong??????
    DerFarm
    I talk to squirrels.
    Squirrels Answer.

  2.  

  3. #2
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,485
    Member #
    425
    Liked
    2783 times
    Do you have a sub procedure named pickTable as well? That's almost what it sounds like from this end. If you posted the code in its entirety (at least to that point) it may be clearer though.

    You may also want to put your picktable('105040302','9080706050') part in double quotes, and change all your picktable calls to pickTable (just in case you have a case sensitivity issue).
    If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.

    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.

    My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)

  4. #3
    Senior Member
    Join Date
    Mar 2002
    Location
    Alabama sans the damn flag
    Posts
    263
    Member #
    38
    I gave up on it. I'm going a different route. Good idea about the multiple picktable. I've got some of those and I'm getting rid of them NOW.

    Thank you
    DerFarm
    I talk to squirrels.
    Squirrels Answer.

  5. #4
    Unpaid WDF Intern TheGAME1264's Avatar
    Join Date
    Dec 2002
    Location
    Not from USA
    Posts
    14,485
    Member #
    425
    Liked
    2783 times
    Not a pablum.
    If I've helped you out in any way, please pay it forward. My wife and I are walking for Autism Speaks. Please donate, and thanks.

    If someone helped you out, be sure to "Like" their post and/or help them in kind. The "Like" link is on the bottom right of each post, beside the "Share" link.

    My stuff (well, some of it): My bowling alley site | Canadian Postal Code Info (beta)

  6. #5
    Senior Member
    Join Date
    Mar 2002
    Location
    Alabama sans the damn flag
    Posts
    263
    Member #
    38
    No, it didn't change anything, but you're quite right. You shouldn't have multiple functions with the same name unless you have a really specific reason...and I don't.

    Thanks
    DerFarm
    I talk to squirrels.
    Squirrels Answer.


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 09:36 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com