Splits a comma-delimited position string into numbers.
Visual Basic |
---|
Public Function SplitPos( _ ByRef x As Double, _ ByRef y As Double, _ ByRef z As Double, _ ByVal pos As String _ ) As Boolean |
True
|
Position successfully split. |
False
|
Failed to split position. |
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 MM ME MD OD OM OV
Group:
sis.SplitPos (10, 33, 0)
Send comments on this topic.
Click to return to www.cadcorp.com
© Copyright 2000-2017 Computer Aided Development Corporation Limited (Cadcorp).