working on some user-defined variable types for a media database project
i'm working on (slowly, oh so slowly). i've defined types for artist and
album and track (individual). naturally, there's going to be multiple
tracks per album, so i'm assuming that an array would be best to store
the trac
On 6 mrt 2004, at 07:56, Jeff Pohlmeyer wrote:
function PosFrom( const needle:AnsiString; const haystack:AnsiString;
StartPt:LongInt):LongInt;
var
p:pChar;
begin
Result:=0;
if (StartPt <= Length(haystack))
then begin
p:=StrPos(pChar(@haystack[StartPt]), pChar(needle))