Ho una funzione che deve restituire un array a seconda o no che sia attivato un checkbox, nel caso non lo sia ritorna il valore scritto nella textbox. ElencoPred e' un array di stringhe.
Il problema e' che non riesco a convertire Textbox.Text in un array che contiene un solo valore. Ottengo l'errore: "Value of type 'String' cannot be converted to 'System.Array'."codice:Private Function Elenco() As Array If checkbox.Checked Then Return ElencoPred Else Return CType(Textbox.Text, Array) End If End Function
C'e' qualche altro metodo di conversione?

Rispondi quotando
