Uma pequena correção no código :) que enviei anteriormente, considere este.
o type StringArray tem que array of Char e não array of String type StringArray = array of Char; procedure StringToArray( S : string; var MyArray : StringArray); var i, n : integer; begin if S = '' then Raise Exception.Create( 'O Parâmetro S deve conter algum valor para ser utilizada'); SetLength(MyArray, 0); for i := 1 to length(S) do begin n := Length(MyArray); SetLength(MyArray, n+1); MyArray[n] := S[i]; end; end; var ma : StringArray; begin StringToArray('Delphi String to Array sample', ma); .... ________________________________ From: delphi-br@yahoogrupos.com.br [EMAIL PROTECTED] On Behalf Of Joao Morais [EMAIL PROTECTED] Sent: Monday, December 01, 2008 3:33 PM To: delphi-br@yahoogrupos.com.br Subject: Re: [delphi-br] String to Array of Char ... 2008/12/1 Carlos Eduardo Menezes <[EMAIL PROTECTED]<mailto:carlos_e%40rocketmail.com>>: > Boa tarde pessoal, gostaria de saber se alguem de vocês conhece uma > função que converta uma string num array de char, ou mesmo algumas de > dicas de como eu posso fazer uma. String _é_ um array de char. O que você está tentando fazer? Joao Morais CONFIDENTIALITY NOTICE: This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. [As partes desta mensagem que não continham texto foram removidas]