vb.net - value of type integer cannot be converted to 1-dimensional array of integer -
im looking @ vb project. defines integer array:
dim batchids integer() then tries populate array using method
batchids = m_obatman.getbatchids(batchclassname) the method return array
public readonly property getbatchids() integer() but line populating batchids giving me error: value of type integer cannot converted 1-dimensional array of integer.
im not vb programmer im assigning array using method returns array. dont see problem. if change batchids integer , not array okay. getbatchids returns array dont understand going on. me here?
the reason property returns array has no parameter. think using argument accessing 1 index of array (if batchclassname integer).
so write in way:
batchids = m_obatman.getbatchids but seems not real/complete code since not compile.
public readonly property getbatchids() integer() gives an: "'readonly' property must provide 'get'"
but if add getter:
m_obatman.getbatchids(batchclassname) returns integer not integer-array because using indexer ( () in vb.net opposed c# [] ). of course presuming batchclassname integer still haven't mentioned.
Comments
Post a Comment