Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Do you see wrong code in here? I am getting a InvalidCaseException on the foreach loop that is using an INT variable:
Microsoft.VisualBasic.Collection oHeaders = GetFieldIdsByName(msREPORT_HEADER); foreach (int FieldId in oHeaders)
foreach (object FieldId in oHeaders) { int value = Int32.Parse(FieldId.ToString()); }
foreach (int i in oHeaders.Cast<int>()) { //TODO: your action here. }