datamobility
asked on
How to declare an indexer in VB.NET
In C# I can do this:
public string this[int idx]
{
get { return (string) lookupItem(idx); }
}
How can I do that in VB?
Cheers,
.pd.
public string this[int idx]
{
get { return (string) lookupItem(idx); }
}
How can I do that in VB?
Cheers,
.pd.
you this
should ofcourse be
you mean this ?
:-)
should ofcourse be
you mean this ?
:-)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
And tonight's winner of the "correct end of the stick" award goes to.....
Thanks!
.pd.
Thanks!
.pd.
dim mystring as string =" test"
public function charstring(mystring as as string,index as integer) as char
return mystring.chars(index)
end function
or just
dim mychar as char = mystring.chars(3)