Message 1 of 9
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello, I am inquiring if it is possible to concatenate a Variable name. In the simple example below I am looking to call oStud_Zinc and oStud_STSTL as "oStud & _Zinc" and "oStud & _STSTL" respectively in the If statement. The end code will process several hardware types and I hoping to simplify the code by looping through the material names; "oStud" in this case.
Dim oStud_Zinc as String = "insert file path and name"
Dim oStud_STSTL as String = "insert file path and name"
If oOccFullFileName.Contains(oStud & _Zinc)
Component.Replace(oOcc.Name, oOccFullFileName.Replace(oStud & _Zinc, oStud & _STSTL), True)
End if
Solved! Go to Solution.