-----Messaggio Originale----- 
Da: "Eduardo Fernandes" <modals...@yahoo.com.br>
A: "Xharbour-Developers List" <xharbour-developers@lists.sourceforge.net>
Data invio: mercoledì 4 novembre 2009 13.22
Oggetto: [xHarbour-developers] Bug on Pad functions.


> ----------------------
> proc main
>
> local cStr := "9"
> local nLen := 10
> local cPad := "*"
>
> ? padL(cStr,nLen,cPad)
> ? padR(cStr,nLen,cPad)
> ? padC(cStr,nLen,cPad)
> ?
> ? padL(cStr,cPad,nLen)
> ? padR(cStr,cPad,nLen)
> ? padC(cStr,cPad,nLen)

The "problem" is that cPad is converted to its character code (ie. 42).

EMG

--
EMAG Software Homepage:     http://www.emagsoftware.it
The EMG's ZX-Spectrum Page: http://www.emagsoftware.it/spectrum
The Best of Spectrum Games: http://www.emagsoftware.it/tbosg
The EMG Music page:         http://www.emagsoftware.it/emgmusic 


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
xHarbour-developers mailing list
xHarbour-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xharbour-developers

Reply via email to