From: "Firestone, Mark - Technical Support" Date: 2002-04-16T01:12:04+09:00 Subject: Pascal to Ruby Been working on my line editor. Just have the insert left. Anyway... is there a way to do this with a string method in ruby that I missed, or do I have to code it out the same way... BEGIN MaxLinesEntered := Succ (MaxLinesEntered); IF MaxLinesEntered > current_linenum THEN FOR i := MaxLinesEntered DOWNTO current_linenum DO MessBuff [i + 1] := MessBuff [i]; MessBuff [current_linenum] := working_line; current_linenum := Succ (current_linenum); END; Basically, I have an array of text in a buffer, and I need to be able to insert at whatever point and move everyting UP .... with all the other cool string stuff in ruby, I can't believe I will have to write that out. Ideas? Thanks for answering another dim question. Mark NOTICE: This e-mail and any attachment(s) may contain confidential and proprietary information of Goss International Corporation and/or its subsidiaries and may be legally privileged. This e-mail is intended solely for the addressee. If you are not the addressee, dissemination, copying or other use of this e-mail or any of its content is strictly prohibited and may be unlawful. If you are not the intended recipient please inform the sender immediately and destroy the e-mail and any copies. All liability for viruses is excluded to the fullest extent permitted by law. Any views expressed in this message are those of the individual sender. No contract may be construed by this e-mail.