SAdd

Returns a pointer to a string variable's data

Syntax
	KeyPgDeclareDeclare KeyPgFunctionFunction SAdd ( KeyPgByrefByRef str KeyPgAsAs KeyPgStringString ) KeyPgAsAs KeyPgZstringZString KeyPgPtrPtr
	KeyPgDeclareDeclare KeyPgFunctionFunction SAdd ( KeyPgByrefByRef str KeyPgAsAs KeyPgWstringWString ) KeyPgAsAs KeyPgWstringWString KeyPgPtrPtr
	KeyPgDeclareDeclare KeyPgFunctionFunction SAdd ( KeyPgByrefByRef str KeyPgAsAs KeyPgZstringZString ) KeyPgAsAs KeyPgZstringZString KeyPgPtrPtr

Usage
	result = SAdd( str )

Parameters
	str
		the string expression or variable to get the address of

Return Value
	A pointer to the data associated with str.

Description
	Returns the memory offset of the string data in the string variable.

Example
	Dim s As String

	Print SAdd(s)
	s = "hello"
	Print SAdd(s)
	s = "abcdefg, 1234567, 54321"
	Print SAdd(s)

Differences from QB
	* QB returned an integer instead of a pointer.

See also
	* KeyPgOpStrptrStrPtr
	* KeyPgOpVarptrVarPtr
	* KeyPgOpProcptrProcPtr

