Jump to content
Fórum Script Brasil
  • 0

Erro ao Dimencionar Array


Amanda Assunção

Question

Boa tarde,

Sou novata em vb.net e gostaria de ajuda para conseguir usar uma dll de criptografia, ´consigo instanciala mais não consigo usar as funções.

me diz sempre que o array não pode ser dimencionado:

Value of type '1-dimensional array of String' cannot be converted to 'String'

o codigo de teste que estou utilizando é esse.. caso consiga criptografar e decriptografar, vou utilizalo em meu sistema.

Private Sub BT_drcript_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BT_drcript.Click

Dim obj As New geraCripto.Cripto()

Dim caluno, cprof, ccolg, Cturma, cdic, cnota, cdata, nnota, nbime As String

caluno = "Amigo Agusto"

Cprof = "Gloria Meneses"

Ccolg = "Educar II"

Cdic = "Geografia"

Cnota = "9,5"

cdata = "12/11/2012"

Cbime = "4ª Bim"

Dim cripto() As String = {caluno, cprof, ccolg, Cturma, cdic, cnota, cdata, nnota, nbime}

Txt2.Text = obj.Criptografar(cripto)

END SUB

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Forum Statistics

    • Total Topics
      152.2k
    • Total Posts
      652k
×
×
  • Create New...