thank you but this gives the total length of the text - if 'barbara' is entered and the character is 'a' - the result must be 3
your help appreciated
this is very simple, i'll give you the answer but i'm not sure how much you'll learn.
counter:=0;
for i:=1 to length(s) do
if s[i]=your_character then
inc(counter)