----boundary-LibPST-iamunique-1522852404_-_-
Content-type: text/plain
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.
----boundary-LibPST-iamunique-1522852404_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW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