Science, Tech, Math Computer Science Pos Function Share Flipboard Email Print Musketeer/DigitalVision/Getty Images Computer Science Delphi Programming Basics Tutorials Database Applications Advanced Delphi PHP Programming Language Perl Programming Language Python Programming Java Programming JavaScript Programming C & C++ Programming Ruby Programming Visual Basic View More by Zarko Gajic Updated September 22, 2016 Declaration:function Pos(Str, Source : string): integer;Description:Returns an integer specifying the position of the first occurrence of one string within another.Pos looks for the first complete occurence of Str in Source. If it finds one, it returns the character position in Source of the first character in Str as an integer value, otherwise it returns 0.Example: var s : string; i : integer; s:='DELPHI PROGRAMMING'; i:=Pos('HI PR',s); //i=5; citecite this article Format mla apa chicago Your Citation Gajic, Zarko. "Pos Function." ThoughtCo, Sep. 22, 2016, thoughtco.com/pos-function-4091945. Gajic, Zarko. (2016, September 22). Pos Function. Retrieved from https://www.thoughtco.com/pos-function-4091945 Gajic, Zarko. "Pos Function." ThoughtCo. https://www.thoughtco.com/pos-function-4091945 (accessed April 20, 2018). copy citation Continue Reading