[fpc-pascal] Assigning string constant to a WideString and the Format function

Lubos Pintes lubos.pintes at gmail.com
Wed Dec 23 10:35:01 CET 2015


Hello,
I have a text in the WideString variable. I want to send this text to a 
SAPI5 synthesizer. I am doing this as follows:
WideStr := Format('<pitch absmiddle="%d">%s</pitch>', [Pitch, Text]);
Pitch is integer, Text is WideString.
The result is incorrect, only a half of the Text contents is copied to 
the result.
Tested with Free Pascal Compiler version 3.1.1 [2015/11/14] for i386
Thanks





More information about the fpc-pascal mailing list