What am I doing wrong with this code - I get garbage displayed in the message box.
Sub EvaluateUnsupportedCombos
Def SupportedPitches:String
Def DummyDiameter:Double
DummyDiameter = MajorMax3A
Select ThreadType
Case ISOCustom
If ((DummyDiameter > 1.5) & (DummyDiameter <= 2.8))
SupportedPitches = "0.2, 0.25, 0.35, 0.4, 0.45"
EndIf
EndSelect
MessageBox ThreadWin,SupportedPitches,"Info"
Return
EndSub
The IF statment or the CASE is FALSE so you're displaying the uninitialized string.
Def SupportedPitches:String
string = ""
Paul.
Thank you.