Apr 6, 2004 #1 davidrobin Programmer Joined Aug 17, 2000 Messages 50 Location GB I am trying to understand some delphi code. i = Pos(#9, f1) Can some one tell me what the #9 means. David Visual Basic 6 Ent
I am trying to understand some delphi code. i = Pos(#9, f1) Can some one tell me what the #9 means. David Visual Basic 6 Ent
Apr 6, 2004 #2 Booris Programmer Joined Feb 26, 2004 Messages 3 Location RO #9 = Chr(9); The character with the asci code 9 For example #65 = 'A' #13 : enter Upvote 0 Downvote
Apr 6, 2004 #3 rogerte Programmer Joined Nov 9, 2001 Messages 164 Location GB (#9) is the ASCII for the TAB character, so what the code is doing is trying to find if the TAB character exists in the string f1. Upvote 0 Downvote
(#9) is the ASCII for the TAB character, so what the code is doing is trying to find if the TAB character exists in the string f1.
Apr 6, 2004 1 #4 lespaul Programmer Joined Feb 4, 2002 Messages 7,083 Location US Actually, it's assigning the position of the tab in the string f1 to the integer i. f1 := 'This has a <tab> here'; i := Pos(#9, f1); i will equal 11 or the position in the string where the tab is. HTH Leslie Upvote 0 Downvote
Actually, it's assigning the position of the tab in the string f1 to the integer i. f1 := 'This has a <tab> here'; i := Pos(#9, f1); i will equal 11 or the position in the string where the tab is. HTH Leslie