by
allistar >> Wed, 22 Dec 2004 3:00:13 GMT
There is probably a better way than this (bound to be), but here goes:
getClassMap():String;
vars
s: String;
pos: Integer;begin
s := display();
pos := s.pos("Maps: ", 1);
if ((pos <> 0) and (pos < s.length() - 6)) then
s := s[pos+1:end];
pos := s.pos(Cr, 1);
if (pos <> 0) then
return s[1:pos-1].stripChar(" ");
else
return s.stripChar(" ");
endif;
endif;
return "";
end;
This is a method on the "Class" class.
Regards,
Allistar.
--
------------------------------------------------------------------
Allistar Melville
Software Developer, Analyst
allistar@silvermoon.co.nz
Auckland, NEW ZEALAND
Silvermoon Software
Specialising in JADE development and consulting
Visit us at:
http://www.silvermoon.co.nz
*NEW* Simple web access to Jade at:
www.silvermoon.co.nz/jhp.html ------------------------------------------------------------------