GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Can anyone here code Delphi? (https://gfy.com/showthread.php?t=303857)

Trax 05-29-2004 06:06 AM

Can anyone here code Delphi?
 
not the most popular language i know :winkwink:

but i have something i would like an experienced programmer to overlook

59* 101_924 is my ICQ

Thanks

grumpy 05-29-2004 06:36 AM

I can. What do you need?

Trax 05-29-2004 06:44 AM

mind msging me?
i have a problem with POS & COPY

Thanks

Ash@phpFX 05-29-2004 06:56 AM

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 :thumbsup

Trax 05-29-2004 07:15 AM

i wouldnt say it rocks but :winkwink:

Trax 05-29-2004 08:07 AM

still seeking help
you will not regret it
thats for sure :winkwink:

Trax 05-29-2004 09:40 AM

:glugglug

Thomas1007 05-29-2004 09:46 AM

Please contact Us
mxdevelopment

:thumbsup

Trax 05-29-2004 09:50 AM

my icq is above!

Thomas1007 05-29-2004 10:02 AM

Icq sent
:thumbsup

Trax 05-29-2004 11:07 AM

thanks
but keep it coming guys
i never forget a person who helped me with something :winkwink:

init 05-29-2004 11:23 AM

post the whole problem here

AvanteGuard 05-29-2004 11:31 AM

Quote:

Originally posted by Trax
thanks
but keep it coming guys
i never forget a person who helped me with something :winkwink:

Hey man, want me to look it over?

i am a lurker 05-29-2004 11:39 AM

Quote:

Originally posted by Trax
thanks
but keep it coming guys
i never forget a person who helped me with something :winkwink:

so you want it done for free? cheap ******

Trax 05-29-2004 11:49 AM

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 :winkwink:
my programmers told me delphi is a joke and that noone still codes with it - well ... i learnt it in school so hehe :glugglug

init 05-29-2004 12:36 PM

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..?

fuzebox 05-29-2004 01:19 PM

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 :1orglaugh

ICQ him at 145213011, tell him I gave you his UIN so he doesn't freak out.

Trax 05-29-2004 01:26 PM

thanks to both- init for the tip and fuzebox for the icq# :winkwink: :thumbsup


All times are GMT -7. The time now is 12:17 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123