get en vb y fileget en vb.net

09/08/2006 - 10:49 por tonid | Informe spam
seria una traduccion correcta ?
'vb
Type JabEmpresa
...
end type

Get #1, C, Empresa

'

vb.net

Structure JabEmpresa
...
end structure
FileGet(1, Empresa, C)

me da el siuiente error




Option Strict On no permite restricciones del tipo 'System.ValueType'
al tipo 'Marketing_para_ópticas.Module2.JabEmpresa' al copiar de nuevo
el valor del parámetro 'ByRef' 'Value' en el argumento
correspondiente.
 

Leer las respuestas

#1 tonid
09/08/2006 - 11:11 | Informe spam
otra duda

Private Sub CargarDatos(ByRef Numero As Short, ByRef Etiqueta As
Microsoft.VisualBasic.Compatibility.VB6.LabelArray, ByRef Tipo As
Short)

Dim Grupo As Short

Etiqueta(Grupo - 1) = CDbl(Val(Etiqueta(Grupo - 1)))

Error de resolución de sobrecarga porque ninguna de las funciones
'Val' a las que se tiene acceso se puede llamar con estos argumentos:
'Public Function Val(Expression As Object) As Double': Option
Strict On no permite la conversión implícita de 'Integer' en 'Short'.
'Public Function Val(Expression As Char) As Integer': Option Strict
On no permite la conversión implícita de 'Integer' en 'Short'.
'Public Function Val(InputStr As String) As Double': Option Strict
On no permite la conversión implícita de 'Integer' en 'Short'.


que devuelve la funcion val?
que tipo es
Microsoft.VisualBasic.Compatibility.VB6.LabelArray?Simplemente un array
de labels?

Preguntas similares