Difference between revisions of "SADD"

From QB64 Wiki
Jump to navigation Jump to search
imported>Clippy
imported>Clippy
Line 11: Line 11:
* Use this function carefully because strings can move in the BASIC string space storage area at any time.
* Use this function carefully because strings can move in the BASIC string space storage area at any time.
* Adding characters may produce a run-time error. Don't add characters to the ends of parameters.
* Adding characters may produce a run-time error. Don't add characters to the ends of parameters.
* SADD cannot be used in Quickbasic 7.1 except in [[ABSOLUTE]] procedures as PDS uses far memory.
* SADD cannot be used in Quickbasic 7 except in [[ABSOLUTE]] procedures as PDS uses far memory for strings.





Revision as of 05:06, 10 September 2009

The SADD function returns the address of a STRING variable as an offset from the current data segment.



Syntax: SADD(stringvariable)


  • The argument may be a simple string variable or a single element of a string

array. You may not use fixed-length string arguments.

  • Use this function carefully because strings can move in the BASIC string space storage area at any time.
  • Adding characters may produce a run-time error. Don't add characters to the ends of parameters.
  • SADD cannot be used in Quickbasic 7 except in ABSOLUTE procedures as PDS uses far memory for strings.



See also: VARSEG, VARPTR, DEF SEG


Navigation:

Go to Keyword Reference - Alphabetical

Go to Keyword Reference - By usage