I couldn't resist relaxing a bit and working on some code, so I got
the code finalized and it compiles. Now to see if it actually
works. :)
here's another post that only pulls out the space delimited fields and this one is zero-based... field 0 is 'A', 1 is 'Daryl', 3 is the comma delimited section and so on...
here's another post that only pulls out the space delimited fields and this one is zero-based... field 0 is 'A', 1 is 'Daryl', 3 is the comma delimited section and so on...
Thanks for the code; I'll keep it in my archives.
I don't normally post my code "out in the open", but I only think
it's right since it's based on what you did. I need to do a bit
more error checking in this code. You'll see calls to functions
that I use in my doorkit unit, but I think you'll get the jist of
it:
===Cut===
((Str[I] = #32) Or
(Str[I] = #9) Or
(Str[I] = ':'))) Do
Count := 2;from here
{ Read in the first name and last name then concatenate
together for FKFOSSIL }
TempData := '';to here
TempData := ExtractWord(GTStr, Count);
Inc(Count);
TempData := TempData + ' ' + ExtractWord(GTStr, Count);
fk_Client.Name := TempData;
TempData := '';
{ Jump to the DCE rate }
Count := Count + 7;
fk_Fossil.Baud := StrToInt(ExtractWord(GTStr, Count));
Inc(Count);
{ Determine if ANSI is used or not }
TempData := ExtractWord(GTStr, Count);
If (TempData = 'ANSI') or (TempData = 'RIPSCRIP') Then
fk_Client.ScreenType := 1 Else fk_Client.ScreenType := 0; {
Time left for this call }
Count := Count + 2;
fk_Client.TimeLeft := StrToInt(ExtractWord(GTStr, Count)); End;
but i may be getting that mixed up with another language :/ if not,
it might even be possible to put the calls to ExtractWord in there
and forego the use of TempData completely...
fk_Client.ScreenType := ((ExtractWord(GTStr,11)='ANSI')or(ExtractWord(GTStr,11)='RIPSCRIP')
);
fk_Client.ScreenType := ord((ExtractWord(GTStr,11)='ANSI')or(ExtractWord(GTStr,11)='RIPSCRI
P'));
and it returns a 1 as desired with 'ANSI' or 'RIPSCRIP' and 0 with anything else (ie: MONO)... if a three state is needed, then using
a boolean like this won't work but it is a quick and neat use of
code "shortcuts" ;)
40 days old, did it get canned for no activity?If not, anyone know where I can get a feed for it?
If you've got some pascal code from DJ Murdoch, chances are you
probably have some code in there that I wrote....
I remember DJ Murdoch in the Pascal Echo.... This echo really
rocked when he was around! ;-) Granted, it's been a while since
I've seen this echo having any messages.... Good to see it being
used.... Question about this echo ... I've got pascal_lessons on
my BBS, but can't get pascal from Marc Lewis.... I notice these
messages are >40 days old, did it get canned for no activity?
If not, anyone know where I can get a feed for it?
Sysop: | digital man |
---|---|
Location: | Riverside County, California |
Users: | 1,043 |
Nodes: | 16 (0 / 16) |
Uptime: | 91:16:41 |
Calls: | 500,956 |
Calls today: | 5 |
Files: | 109,377 |
D/L today: |
1,307 files (250M bytes) |
Messages: | 304,703 |