dimanche 23 mars 2014

Calling string from another sub


Vote count:

0




I want to use a string that I declared previously into a function (there's a reason why I want it to be a function). But the function isn't recognising the string, my question is how I could modify the code below to make it work? Any help is appreciated. Thank you in advance.



Sub encryption

Dim text As String = wraper.DecryptData(ciphertext)

End sub


and...



Public Function CallResults() As String

Dim instructions As String = text '//'text' isn't being recognised
Return instructions

End function


asked 56 secs ago






Aucun commentaire:

Enregistrer un commentaire