Judy,
Without any context it is hard to make any comments.
just to add to what Chris and Maarten have said -
Je l'ai dit = I said it
Je lui ai dit = I told him
Je le lui ai dit = I told him ( it/so)
These are object pronouns some direct and indirect.
This is too large a subject to discuss on this forum.