Author Topic: Acces Sceanrio Extensions  (Read 2366 times)

SomersetGraham

  • EA User
  • **
  • Posts: 376
  • Karma: +1/-0
    • View Profile
Acces Sceanrio Extensions
« on: July 01, 2010, 05:43:53 pm »
Hi All
The following code gives me an error
'Unable to cast COM object to type 'System._ComObject' to EA.ScenarioExtension'
Code: [Select]
int cnt = step.Extensions.Count;

if (cnt > 0)
{
    EA.ScenarioExtension e = (EA.ScenarioExtension)step.Extensions.GetAt(0);
    string s = e.Join;
}

Does anyone know why this happens

Graham
Using V12

alesliehughes

  • EA Administrator
  • EA User
  • *****
  • Posts: 104
  • Karma: +0/-0
    • View Profile
Re: Acces Sceanrio Extensions
« Reply #1 on: July 09, 2010, 03:09:52 pm »
This appears to be a bug.

It will be fixed in a future build.