I have a code that runs correctly in CATScript.
But with MS VBA I have an error on line 7.
There is an HELP where I can read equivalence between CTAScript and MS VBA?!
How would you write the line 7 in MS VBA?!
Dim EnvVar As String
ADL_ODT_IN = 55
EnvVar = CATIA.SystemService.Environ(“ADL_ODT_IN”)
CATIA.SystemService.Print “ADL_ODT_IN =” & EnvVar
If (Len(EnvVar) < 10) Then
BidVar = EnvVar
BidVar = Mid(EnvVar, 1, 10)