Visual Basic (Declaration) | |
---|---|
Public Shared Function TryParse( _ ByVal s As String, _ ByRef result As CellRange _ ) As Boolean |
Visual Basic (Usage) | Copy Code |
---|---|
Dim s As String Dim result As CellRange Dim value As Boolean value = CellRange.TryParse(s, result) |
Parameters
- s
- String to be parsed
- result
- Cell range represented by the string. If the return value is false then result is set to null.
The text passed to the TryParse method must contain the cell name(s) as a column name (as one or more letters) following by the row number (as one or more digits). The row number is 1-based.
This example returns the result.
C# | Copy Code |
---|---|
bool result; FarPoint.Web.Spread.Model.CellRange range; result = FarPoint.Web.Spread.Model.CellRange.TryParse("B3", out range); TextBox1.Text = result.ToString(); |
Visual Basic | Copy Code |
---|---|
Dim trange As FarPoint.Web.Spread.Model.CellRange Dim result As Boolean result = FarPoint.Web.Spread.Model.CellRange.TryParse("B1", trange) TextBox1.Text = result |
Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6