Multiple choice technology programming languages

Which compiler directive controls whether the reserved word 'string' represents a short string or a long string?

  1. $M+/-
  2. $H+/-
  3. $P+/-
  4. $V+/-
  5. $X+/-
Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The $H compiler directive (Huge strings) controls whether 'string' maps to short strings (limited to 255 characters) or AnsiString (long strings, dynamically allocated). $H+ enables long strings (default in modern Delphi), while $H- switches to legacy short strings. $M controls stack size, $P controls open parameters, $V controls string var checking, and $H controls string type mapping.