(infor[1].name) how can I remove the (.) from (infor[1].name)

if "infor[1].name" is string, then is very simple.

var
 S: string;
 P: integer;
begin
  S := 'infor[1].name';
  P := Pos('.',S);
  if P > 0 then
     Delete(S,P,1);
end;

if the "infor[1]" - an object, then you need to read a book on OOP or career change.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.