IonicWind Software

IWBasic => General Questions => Topic started by: mrainey on March 04, 2007, 08:56:02 AM

Title: Display string variable in messagebox
Post by: mrainey on March 04, 2007, 08:56:02 AM
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
Title: Re: Display string variable in messagebox
Post by: Ionic Wind Support Team on March 04, 2007, 08:58:47 AM
The IF statment or the CASE is FALSE so you're displaying the uninitialized string.

Def SupportedPitches:String
string = ""

Paul.
Title: Re: Display string variable in messagebox
Post by: mrainey on March 04, 2007, 12:31:52 PM
Thank you.