|  | CSHPiAddStringField Method  | 
 Add a string type data field to a shape file
 
    Namespace: 
   Geosoft.Desktop.GXNetX
    Assembly:
   geosoft.desktop.gxnetx (in geosoft.desktop.gxnetx.dll) Version: 2025.1.0.25
 Syntax
Syntaxpublic int iAddStringField(
	string field,
	int width
)
public int iAddStringField(
	string field,
	int width
)
Public Function iAddStringField ( 
	field As String,
	width As Integer
) As Integer
Public Function iAddStringField ( 
	field As String,
	width As Integer
) As Integer
public:
int iAddStringField(
	String^ field, 
	int width
)
public:
int iAddStringField(
	String^ field, 
	int width
)
member iAddStringField : 
        field : string * 
        width : int -> int 
member iAddStringField : 
        field : string * 
        width : int -> int 
Parameters
- field
- Type: SystemString
 Field name
- width
- Type: SystemInt32
 Maximum number of characters in the string
Return Value
Type: 
Int32Index of the new field
 Remarks
Remarks
The returned field index should be used with the SetXXX_SHP
functions to set individual data values.
 See Also
See Also