Ver Mensaje Individual
  #4  
Antiguo 06-04-2011
Delfino Delfino is offline
Miembro
 
Registrado: jul 2003
Ubicación: Madrid
Posts: 974
Reputación: 21
Delfino Va por buen camino
Código Delphi [-]
function TextToBuffer(Command: string): TBytes;
  var I: Integer;
      slBuffer: TStringList;
begin
 slBuffer := TStringList.Create;
 try
  slBuffer.Delimiter := ':';
  slBuffer.DelimitedText := Command;
  SetLength(Result, slBuffer.Count);
  for I := 0 to slBuffer.Count - 1 do
    Result[i] := StrToInt('$' + slBuffer[i]);
 finally
  slBuffer.Free;
 end;
end;
__________________
¿Microsoft? No, gracias..

Última edición por Delfino fecha: 06-04-2011 a las 15:39:38.
Responder Con Cita