home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 8
/
CDASC08.ISO
/
NEWS
/
554
/
AVRIL
/
ABSOLUTE.FYI
< prev
next >
Wrap
Text File
|
1993-10-07
|
1KB
|
33 lines
─ Fido Pascal Conference ────────────────────────────────────────────── PASCAL ─
Msg : 575 of 591
From : Sean Palmer 1:104/123.0 17 Apr 93 22:21
To : All
Subj : String FYI, Tp 5.5+?
────────────────────────────────────────────────────────────────────────────────
Just so you guys know, if your compiler can handle ABSOLUTE variables, it's
really pretty efficient to do this:
var
str: string[31];
len: byte absolute str;
then instead of using "length(str)" you just use "len"
Neat? changing the string's length is alot easier too.
like...
inc(len); str[len]:=' '; {add a space to end}
len:=0; {make null string}
_
/ _
\_/host
... I know for sure that I am always wrong
___ Blue Wave/QWK v2.12
--- Maximus 2.01wb
* Origin: >>> Sun Mountain BBS <<< (303)-665-6922 (1:104/123)