April 28, 2024, 11:00:16 PM

News:

IonicWind Snippit Manager 2.xx Released!  Install it on a memory stick and take it with you!  With or without IWBasic!


Display string variable in messagebox

Started by mrainey, March 04, 2007, 08:56:02 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

mrainey

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
Software For Metalworking
http://closetolerancesoftware.com

Ionic Wind Support Team

The IF statment or the CASE is FALSE so you're displaying the uninitialized string.

Def SupportedPitches:String
string = ""

Paul.
Ionic Wind Support Team

mrainey

Software For Metalworking
http://closetolerancesoftware.com