bas7advr.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
SADD Function Details
  Syntax  Details  Example                 Contents  Index  Back
──────────────────────────────────────────────────────────────────────────────
SADD returns the address of a string as an offset from the current data
segment. It is typically used in mixed-language programming to obtain
far addresses before passing far strings to procedures written in other
languages. The offset is a 2-byte integer.
 
SADD (stringvariable$)
 
Usage Notes
    ■ SADD can be used with both near and far strings. To obtain the
      segment address of a far string, use the SSEG function.
    ■ In previous versions of BASIC, SADD was used only for near strings.
 
Important
    ■ Use this function with care because strings can move in the BASIC
      string space (storage area) at any time.
    ■ Do not add characters to the beginning or end of a string passed
      using SADD and LEN. Adding characters may cause BASIC to generate a
      run-time error.