URGENT!!!!

  • Thread starter Thread starter Marcus Vinícius
  • Start date Start date
M

Marcus Vinícius

Hi Guys,

When I trying to execute this code,

insGrupo = Nothing
insGrupo = New Grupo(Short.Parse(0), TxtGrCoCodi.Text)


occurs the following error

System.FormatException: Sequence of entrance was not in a correct format.


Somebody knows what it can be this error?
 
Marcus Vinícius said:
Hi Guys,

When I trying to execute this code,

insGrupo = Nothing
insGrupo = New Grupo(Short.Parse(0), TxtGrCoCodi.Text)


occurs the following error

System.FormatException: Sequence of entrance was not in a correct format.


Somebody knows what it can be this error?

What are the types expected by the "Grupo" constructor?
Usually the "Parse" methods take a "string" parameter, not an int?
(try "Convert.ToInt16(0)")

Hans Kesting
 
Thanks Hans but my class expects a Short value....

Marcus
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top