Navigation:  thinBasic language > Program Flow > SELECT >

SelectExpression

Previous pageReturn to chapter overviewNext page

 

Description

 

From inside a SELECT structure, returns the value of the SelectExpression clause.

 

Syntax

 

s = SelectExpression

 

Returns

 

String

 

Parameters

 

Remarks

 

Restrictions

 

See also

 

SelectExpression

 

Examples

 

Dim MyString As String = "one"

 

'           |----------------------| The value of this expression

'           |<--SelectExpression-->| (in a form of string) will be

'           |                      | returned by SelectExpression

Select Case UCASE$(MyString) & "..."

Case "TWO"

  MSGBOX 0, "SelectExpression:TWO=" & SelectExpression

Case "ONE..."

  MSGBOX 0, "SelectExpression:ONE=" & SelectExpression

Case Else

  MSGBOX 0, "SelectExpression:ELSE=" & SelectExpression

End Select

 

© 2004-2008 thinBasic. All rights reserved. Version 1.7.0.0 Web Site: http://www.thinbasic.com