That's it, thanks Mindaugas.
Brgds,
Viktor
On 2008.06.08., at 18:43, Mindaugas Kavaliauskas wrote:
... I think it would very
nice if there would be a possibility to specify the
_ordinals_ of those format strings:
cName := "Bond"; cCity := "Tokyo"
_SPD( "Hi, I'm %#01s from %#02s.", cName, cCity ) -> "Hi, I'm Bond
from Tokyo"
_SPD( "Hi, I'm from %#02s, my name is %#01s.", cName, cCity ) ->
"Hi, I'm from Tokyo, my name is Bond"
[ I seem to recall there is a standard way to achieve this
in printf(), but I didn't find any specifics, so I might be
wrong. ]
Hi,
the correct syntax is: %1$s, etc. Example:
"Only %2$d bytes free on '%1$s'."
is semantically equivalent to
"'%s' has only %d bytes free."
The more detail docs is here:
http://www.opengroup.org/onlinepubs/009695399/functions/fprintf.html
Best regards,
Mindaugas
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour