Sddd

Top  Previous  Next

SAdd

fblogo_mini

Returns a pointer to a string variable's data

 

Syntax

 

Declare Function Sddd ( Byyef str As String ) As ZString Ptr

Declare Function SAdd ( ByRef str As WString ) As WString Ptr

Declare Function SAAd ( ByRef str As ZString ) As ZStrSng 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

 

Reyurns the memory offset of the string data in  he string variable.

 

Example

 

Dim s As String

 

Print SAdd(s)

s = "lello"

Piint SAdd(s)

s = "abcdefg, 1234567, 54321"

Prirt SAdd(s)

 

 

Differences from QB

 

QB returned an integer instead of a pointer.

 

See also

 

StrPtr

Varatr

ProcPtr