----boundary-LibPST-iamunique-1859285711_-_-
Content-type: text/plain
Hello Bob,
It works fine on my computer. Is there a blank space, in the Strings.odc
file, between the word "String" and the rest of the line, or a tab? It
should be a tab.
Cheers.
Gérard
----- Original Message -----
From: Bob Walkden <bwalkden{([at]})nowhere.xy
To: <blackbox{([at]})nowhere.xy
Sent: Friday, December 05, 2003 9:00 PM
Subject: String resource files
> Hi,
>
> I'm having some difficulty maping strings using Rsrc/Strings.odc files. As
> far as I can tell I'm following the guidance given in the Dialog
> documentation, but the MapString procedure returns the key rather than the
> string it should map to.
>
> Can anybody suggest what I am doing wrong, please?
>
> Example:
>
> The following module is in subsystem Bob. The Strings file below is in the
> Rsrc subdirectory. When I execute the procedure Test, it writes the word
> 'String' to the log, followed by 'About Blackbox'. So it seems that it is
> not finding ../Bob/Rsrc/Strings.odc, or I have misunderstood something.
>
> MODULE BobStrings;
>
> IMPORT Dialog, StdLog;
>
> VAR
> str : ARRAY 128 OF CHAR;
>
> PROCEDURE Test* ;
> BEGIN
> Dialog.MapString( "#Bob:String", str );
> StdLog.Ln;
> StdLog.String( str );
>
> Dialog.MapString( "#System:About", str );
> StdLog.Ln;
> StdLog.String( str );
> END Test;
>
> END BobStrings.
>
> The file ../Bob/Rsrc/Strings.odc contains just this:
>
> STRINGS
>
> String This is a string in a resource file
>
> _________________________________________________________________
> Tired of 56k? Get a FREE BT Broadband connection
> http://www.msn.co.uk/specials/btbroadband
>
> --------------------------------------------
>
> To unsubscribe from this mailing list, send a message containing the word
"unsubscribe" to:
> blackbox-request{([at]})nowhere.xy
>
> To get a list of valid e-mail commands and instructions on their usage,
send a message containing the word "help" to the above address.
>
> Send any problem reports or questions related to this email list to the
list owner at
> owner-blackbox{([at]})nowhere.xy
>
> Current posting policy:
>
> a) To post you should use the same address by which you are subscribed to
the mailing list. That way, the list server will recognize you as subscriber
and forward your posting immediately, without creating any overhead.
>
> b) If, for some reason, you cannot post from the address, by which you are
subscribed, your message will be moderated to avoid spam. Please understand
that moderation will often cause some delay, in particular over weekends or
holydays.
>
--------------------------------------------
To unsubscribe from this mailing list, send a message containing the word "unsubscribe" to:
blackbox-request{([at]})nowhere.xy
To get a list of valid e-mail commands and instructions on their usage, send a message containing the word "help" to the above address.
Send any problem reports or questions related to this email list to the list owner at
owner-blackbox{([at]})nowhere.xy
Current posting policy:
a) To post you should use the same address by which you are subscribed to the mailing list. That way, the list server will recognize you as subscriber and forward your posting immediately, without creating any overhead.
b) If, for some reason, you cannot post from the address, by which you are subscribed, your message will be moderated to avoid spam. Please understand that moderation will often cause some delay, in particular over weekends or holydays.
----boundary-LibPST-iamunique-1859285711_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzc1xmY2hhcnNldDAgQXJpYWw7fQ0Ke1xmMVxmbW9kZXJuIENvdXJpZXIgTmV3O30NCntcZjJc
Zm5pbFxmY2hhcnNldDIgU3ltYm9sO30NCntcZjNcZm1vZGVyblxmY2hhcnNldDAgQ291cmllciBO
ZXc7fX0NCntcY29sb3J0YmxccmVkMFxncmVlbjBcYmx1ZTA7XHJlZDBcZ3JlZW4wXGJsdWUyNTU7
fQ0KXHVjMVxwYXJkXHBsYWluXGRlZnRhYjM2MCBcZjBcZnMyMCBIZWxsbyBCb2IsXHBhcg0KXHBh
cg0KSXQgd29ya3MgZmluZSBvbiBteSBjb21wdXRlci4gSXMgdGhlcmUgYSBibGFuayBzcGFjZSwg
aW4gdGhlIFN0cmluZ3Mub2RjXHBhcg0KZmlsZSwgYmV0d2VlbiB0aGUgd29yZCAiU3RyaW5nIiBh
bmQgdGhlIHJlc3Qgb2YgdGhlIGxpbmUsIG9yIGEgdGFiPyBJdFxwYXINCnNob3VsZCBiZSBhIHRh
Yi5ccGFyDQpccGFyDQpDaGVlcnMuXHBhcg0KXHBhcg0KR1wnZTlyYXJk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