From GridLAB-D Wiki
Jump to: navigation, search

char8 - 8 character string built-in property type


class name { char8 variable; }
object name { variable value; }


Character strings of 8 characters or less are stored in a char8 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.


To declare a char8 value in a class use the syntax

class my_class {
  char8 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 8 or fewer characters..

See also