String Manipulation

ulmedasulmedas Member Posts: 4
edited November -1 in Working with GS (Mac)
Howdy Folks.
I wonder if it is possible to display a partial string?
I have figured out (via the forum) how to get the # of characters of a string, and I would like to use that to truncate the string and or display only part of the string. Any ideas?

Thanks a ton.

Toodle-pop,

Ulmedas

Comments

  • AjBlueAjBlue Member Posts: 215
    whats this about string cheese? string theory? cats playing with string? funny cat videos ? youtube ? raywilliamjohnson, thats it everything boils down to that man.
  • ulmedasulmedas Member Posts: 4
    Hrm...that was unhelpful. Specifically, I am referring to strings of characters, often used to convey information. Though I rather like kitten (or cats for that matter) playing with string.

    kthanksbye

    Ulm.
  • magic101himagic101hi Member Posts: 713
    I still do not understand you question are you talking about the Rules inside of the actor?

    -Josh

    EDIT: Mabie this will help you just look at the rule for getting the number in a sequence.
  • ulmedasulmedas Member Posts: 4
    I am referring to the behavior 'display text'. Is it possible to display a partial string.
    the only place I know to make a persistant string is as an actor attribute. I seems like there is a way to concatenate strings using ".."
    `'blah'..self.someAttribute`

    But is there a way to access the array of characters that make up the string? or to truncate a string (i.e., remove say the last character of a string?)

    for example, assume I have a string:
    `"I am a string, yes"`

    Truncating the last character I get:
    `"I am a string, ye"`

    Does anyone know a way to do something like this? It does not matter where the string is, I can make it work.
Sign In or Register to comment.