![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
[----------------------]
Join Date: Aug 2001
Posts: 14,486
|
![]() not the most popular language i know
![]() but i have something i would like an experienced programmer to overlook 59* 101_924 is my ICQ Thanks |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Too lazy to set a custom title
Join Date: Jan 2002
Location: Holland
Posts: 9,870
|
I can. What do you need?
__________________
Don't let greediness blur your vision | You gotta let some shit slide icq - 441-456-888 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
[----------------------]
Join Date: Aug 2001
Posts: 14,486
|
mind msging me?
i have a problem with POS & COPY Thanks |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Join Date: Nov 2003
Posts: 4,292
|
damn, not since delphi 3
i feel fucking old (and im only 19) i havent needed it in a long time, ive only done web based stuff lately. delphi rocks ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
[----------------------]
Join Date: Aug 2001
Posts: 14,486
|
i wouldnt say it rocks but
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
[----------------------]
Join Date: Aug 2001
Posts: 14,486
|
still seeking help
you will not regret it thats for sure ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
[----------------------]
Join Date: Aug 2001
Posts: 14,486
|
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
Confirmed User
Join Date: Aug 2002
Location: BC Canada
Posts: 5,542
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
[----------------------]
Join Date: Aug 2001
Posts: 14,486
|
my icq is above!
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 |
Confirmed User
Join Date: Aug 2002
Location: BC Canada
Posts: 5,542
|
Icq sent
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
[----------------------]
Join Date: Aug 2001
Posts: 14,486
|
thanks
but keep it coming guys i never forget a person who helped me with something ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 |
Confirmed User
Join Date: Oct 2002
Location: Sarasota, FL
Posts: 973
|
post the whole problem here
__________________
icq: 2721653 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#13 | |
Confirmed User
Join Date: Jan 2004
Location: Cortland, OH
Posts: 451
|
Quote:
__________________
Looking for Fast Professional Programming? http://www.imadigan.com ICQ: 314-942-262 | MSN/Email: [email protected] |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#14 | |
Confirmed User
Join Date: Mar 2004
Posts: 521
|
Quote:
__________________
![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#15 |
[----------------------]
Join Date: Aug 2001
Posts: 14,486
|
Of course i can post it here
![]() here we go: procedure TForm1.FormCreate(Sender: TObject); var temp :string; begin AssignFile(Txt, 'a.txt'); Reset(Txt); Memo1.Lines.Clear; Memo2.Lines.Clear; While not EOF(txt) do begin ReadLn(txt, temp); Memo1.Lines.Add(temp); end; CloseFile(Txt); end; procedure TForm1.SearchButtonClick(Sender: TObject); var temp :string; such :string; result :array[0..100] of string; i, j, anf, lang: integer; begin such:=edit1.Text; Reset(Txt); i:=0; j:=0; While not EOF(txt) do begin ReadLN(Txt, temp); total:=length(such); beg:=pos(such, temp); if anf <> 0 then begin result[i]:=copy(temp, beg, total); memo2.lines.add('Found in line '+inttostr(j)+' the result '+result[i]); inc(i); end; inc(j); end; end; end. no the problem lets say the text file looks like this: "1 2 3 4 5 1 2 3 oaewrhgoawehg owehg wioehgweg 1woeihgwoeihgw" and i search for "1" it only displays that its found in line 1 and in line 3 however i want it to find the other 1's in line1 as well but i am not able to work with that somebody told me something about posEx but i am not able to work with that and it has to be done with POS and COPY ![]() i am freshing up my delphi knowledge a bit and am stuck here ![]() my programmers told me delphi is a joke and that noone still codes with it - well ... i learnt it in school so hehe ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#16 |
Confirmed User
Join Date: Oct 2002
Location: Sarasota, FL
Posts: 973
|
just by looking it over, it seems that after 1 is found it automatically increases j, so even if there is a second one on the same line, j will be increased and possibly give you the wrong line its on..?
__________________
icq: 2721653 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#17 |
making it rain
Industry Role:
Join Date: Oct 2003
Location: seattle
Posts: 22,119
|
Heh... I actually do know a guy who's a Delphi expert... I always make fun of him, this time he may actually be useful for something
![]() ICQ him at 145213011, tell him I gave you his UIN so he doesn't freak out. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#18 |
[----------------------]
Join Date: Aug 2001
Posts: 14,486
|
thanks to both- init for the tip and fuzebox for the icq#
![]() ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |