[BLACKBOX] Delphi-like parameters in Array Of Const

From: [at]} <Romiras>
Date: Sat, 9 Oct 2010 15:17:51 +0200

----boundary-LibPST-iamunique-670050999_-_-
Content-type: text/plain

There is very useful procedure in Delphi, called 'Format', for
formatting string (and like 'sprintf' function in C). It receives a
template string and open array of values with different types (e.g.
integer, string and so on) and substitutes values in template.
I'm looking for simple solution for formatting strings as above because
not satisfied with Dialog.MapParamString.

> Internally, an array of const is an open array of TVarRec.
How to implement such 'array of const' in Component Pascal? Is it possible?


----
To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy----boundary-LibPST-iamunique-670050999_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt9DQpcdWMxXHBh
cmRccGxhaW5cZGVmdGFiMzYwIFxmMFxmczIwIFRoZXJlIGlzIHZlcnkgdXNlZnVsIHByb2NlZHVy
ZSBpbiBEZWxwaGksIGNhbGxlZCAnRm9ybWF0JywgZm9yIFxwYXINCmZvcm1hdHRpbmcgc3RyaW5n
IChhbmQgbGlrZSAnc3ByaW50ZicgZnVuY3Rpb24gaW4gQykuIEl0IHJlY2VpdmVzIGEgXHBhcg0K
dGVtcGxhdGUgc3RyaW5nIGFuZCBvcGVuIGFycmF5IG9mIHZhbHVlcyB3aXRoIGRpZmZlcmVudCB0
eXBlcyAoZS5nLiBccGFyDQppbnRlZ2VyLCBzdHJpbmcgYW5kIHNvIG9uKSBhbmQgc3Vic3RpdHV0
ZXMgdmFsdWVzIGluIHRlbXBsYXRlLlxwYXINCkknbSBsb29raW5nIGZvciBzaW1wbGUgc29sdXRp
b24gZm9yIGZvcm1hdHRpbmcgc3RyaW5ncyBhcyBhYm92ZSBiZWNhdXNlIFxwYXINCm5vdCBzYXRp
c2ZpZWQgd2l0aCBEaWFsb2cuTWFwUGFyYW1TdHJpbmcuXHBhcg0KXHBhcg0KID4gSW50ZXJuYWxs
eSwgYW4gYXJyYXkgb2YgY29uc3QgaXMgYW4gb3BlbiBhcnJheSBvZiBUVmFyUmVjLlxwYXINCkhv
dyB0byBpbXBsZW1lbnQgc3VjaCAnYXJyYXkgb2YgY29uc3QnIGluIENvbXBvbmVudCBQYXNjYWw/
IElzIGl0IHBvc3NpYmxlP1xwYXINClxwYXINClxwYXINCi0tLS1ccGFyDQpUbyB1bnN1YnNjcmli
ZSwgc2VuZCBhIG1lc3NhZ2Ugd2l0aCBib2R5ICJTSUdOT0ZGIEJMQUNLQk9YIiB0byBMSVNUU0VS
VkBMSVNUUy5PQkVST04uQ0h9fQAaAAAA
----boundary-LibPST-iamunique-670050999_-_---
Received on Sat Oct 09 2010 - 15:17:51 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:30:30 UTC