Is there a limit on input parameter?

newbeee

Member
Joined
Sep 27, 2007
Messages
19
Programming Experience
Beginner
I have a huge form with tons of txtboxes, for each txtbox, I create a get function to retrieve the data from user input.

Public ReadOnly Property getTeam1() As String
Get
getTeam1 = txtTeam1.Text & " "
End Get
End Property

When the button is click, I call a function from class data to retrieve the txtbox data. (eg. tempObj.add(getTeam1, getTeam2, etc))

Is there a limit on input parameter? (We're talking about 60+ input parameters) The web didn't generate any error when I run it, but it doesn't seem to take in any data. When I toggle debug points, the compiler told me that there's some kind of error retrieving the data. When I run the same function using 4 parameter input for testing, it ran just fine.

Any suggestions?

Thanks.
 
VB.NET:
Get
getTeam1 = txtTeam1.Text & " "
End Get

The proper way to "retrieve" data from a property is thus:
VB.NET:
Get
  Return txtTeam1.Text & " "
End Get

The "Return" keyword was added to VB.net in version 2002, it's recommended that you use it for returning data in functions too
 
This doesn't make any difference. I think it really has to number of parameters that a function can hold?
Like I said, when I tried a function with a few input parameter, it works like a charm, but not when I have about 60+?

Any other suggestions? Anyone?

Thanks.
 
what is the error?

i imagine it would have something to do with some of the data within the input parameters, as opposed to there being too many parameters.

I've never come across a limit.
 
Back
Top