[Lazarus] String with °

Kamen Kamen kamenlist at abv.bg
Thu Oct 10 12:00:19 CEST 2013


 Thanks, Mattias! Now is OK.




-------- Оригинално писмо --------
От:  Mattias Gaertner  
Относно: Re: [Lazarus] String with °
До: lazarus at lists.lazarus.freepascal.org
Изпратено на: Четвъртък, 2013, Октомври 10 11:57:04 EEST


On Thu, 10 Oct 2013 11:52:24 +0300 (EEST)

Kamen Kamen  kamenlist at abv.bg > wrote:



>  

> Hello, 

> I have string with ° and I want to delete all symbols to °. When I delete symbol ° returns #176. How can I delete this symbol? 

> Exampe: s := '49°45 ';

>  

> After: delete (s, 1, 2); --> '°45 ' 

> After: delete (s, 1, 1); or delete (s, pos ('°', s), 1); -->

> 

> #176'45 '

>  

> I want to reseive only '45 '. 



delete (s, pos ('°', s), length('°'));





Mattias



--

_______________________________________________

Lazarus mailing list

 Lazarus at lists.lazarus.freepascal.org 

 http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus 


 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20131010/f1b90083/attachment-0003.html>


More information about the Lazarus mailing list