From GridLAB-D Wiki
Jump to: navigation, search

Character strings of 1024 characters or less are stored in a char1024 built-in data type.

An attempt to store a string longer than the maximum number of characters permitted results in truncation of the string to a length that fits.

GLM

To declare a char1024 value in a class use the syntax

class my_class {
  char1024 my_string;
}

To define a string value in an object use the syntax

object my_class {
  my_string "value";
}

where "value" is a string of 1024 or fewer characters..

See also