SplitPos Method
Description
Splits a comma-delimited position string into numbers.
Syntax
Visual Basic |
---|
Public Function SplitPos( _ ByRef x As Double, _ ByRef y As Double, _ ByRef z As Double, _ ByVal pos As String _ ) As Boolean |
Parameters
- x
- The x coordinate of position read from the position string.
- y
- The y coordinate of position read from the position string.
- z
- The z coordinate of position read from the position string.
- pos
- The comma-delimited position string to split.
Return Type
True
|
Position successfully split. |
False
|
Failed to split position. |
Remarks
This method passes the arguments x, y, and z by reference, i.e. the method modifies the values, and the modified values are passed back to the caller. JavaScript and JScript do not allow arguments to be passed by reference. The code below shows how to split the string in these languages:
var s;
s = Sis.GetViewExtent();
var ss;
ss = s.split(",");
var x,y,z;
x = ss[0];
y = ss[1];
z = ss[2];
Available: GEO D OD OM OV
Group:
Example
sis.SplitPos (10, 33, 0)