SSEG Function ---------------------------------------------------------------------------- Action Returns the segment address of a string (or 0 if the argument is a null string). Syntax SSEG( stringvariable$) Remarks The argument stringvariable$ is the string variable for which you want the segment address. It can be a simple string variable or a single element of a string array. You cannot use fixed-length string arguments. SSEG returns the segment address for strings. It is typically used in mixed-language programming to obtain far addresses before passing far strings to procedures written in other languages. SSEG usually is used with far strings but also can be used with strings stored in DGROUP (in which case it returns DGROUP's address). The offset of a string can be found by using the SADD function. In OS-2 protected mode, the SSEG function returns the selector of the specified string variable. See Also BLOAD, BSAVE, DEF SEG, PEEK, POKE, SADD, SSEGADD Example See the sadd function programming example, which uses the SSEG function.