Casting Syntax Error

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi

I noticed I keep running into the same types of errors when casting
I have Option Strict set on too

Here is the code
Convert.ToInt32(e.NewGroupPath

The DataTypes are defined as follows:

Public Property GroupPath() As Integer(
Member of: CrystalDecisions.Shared.TotallerNodeI

NewGroupPath String. Gets the group number and group level that is being drilled into.

I get a syntax error stating that the Value of type integer can not cast to a 1-dimensional array of integer

Would somebody be so kind as to explain this error to me and how to fix it

Thanks
 
* "=?Utf-8?B?Q2hyaXMgTGFuZQ==?= said:
I noticed I keep running into the same types of errors when casting.
I have Option Strict set on too.

Here is the code:
Convert.ToInt32(e.NewGroupPath)

The DataTypes are defined as follows:

Public Property GroupPath() As Integer()
Member of: CrystalDecisions.Shared.TotallerNodeID

This will return an integer /array/. You will have to use
'e.GroupPath(<Index>)'.
 
LOL, I just figured it out after I posted lol.
Man that was a no brainer
Thanks Herfried for the response.
 
Ok I spoke to soon. I got rid of my syntax error. Now I get a runtime error of
Object reference not set to an instance of an object
I know what this means but don't understand why I am getting it
sigh.
 
Back
Top