Dit is wat ik heb in een functie:
Dan in roep ik de functie op zo:
Dan krijg ik deze error:
System.NullReferenceException: Object reference not set to an instance of an object.
Kan iemand mss zeggen hoe ik juist een array kan returnen?
code:
1
2
3
4
5
| function Getuserfunction() as string() ' This Function will get the function of the user
dim arrayinside() as string
arrayinside(0)="foo"
return(arrayinside)
end function |
Dan in roep ik de functie op zo:
code:
1
2
3
| dim strtest(5) as string strtest=Getuserfunction() con_close.text=strtest(0) |
Dan krijg ik deze error:
System.NullReferenceException: Object reference not set to an instance of an object.
Kan iemand mss zeggen hoe ik juist een array kan returnen?