Re: String resource files

From: [at]} <Bob>
Date: Sun, 7 Dec 2003 12:49:45 +0000

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

Hi,

I've found the answer to this problem. I had the wrong understanding
of subsystems. I had created the subsystem directories manually. When
I called Tools-Create subsystem and tried again, it worked. So it
seems that the command leaves a trace that Dialog.MapString (at least)
uses when it tries to map the key.

Thanks,

Bob

Saturday, December 6, 2003, 3:18:42 PM, you wrote:

> 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
>>

--------------------------------------------

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-252524226_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"

e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzc1xmY2hhcnNldDAgQXJpYWw7fQ0Ke1xmMVxmbW9kZXJuIENvdXJpZXIgTmV3O30NCntcZjJc
Zm5pbFxmY2hhcnNldDIgU3ltYm9sO30NCntcZjNcZm1vZGVyblxmY2hhcnNldDAgQ291cmllciBO
ZXc7fX0NCntcY29sb3J0YmxccmVkMFxncmVlbjBcYmx1ZTA7XHJlZDBcZ3JlZW4wXGJsdWUyNTU7
fQ0KXHVjMVxwYXJkXHBsYWluXGRlZnRhYjM2MCBcZjBcZnMyMCBIaSxccGFyDQpccGFyDQpJJ3Zl
IGZvdW5kIHRoZSBhbnN3ZXIgdG8gdGhpcyBwcm9ibGVtLiBJIGhhZCB0aGUgd3JvbmcgdW5kZXJz
dGFuZGluZ1xwYXINCm9mIHN1YnN5c3RlbXMuIEkgaGFkIGNyZWF0ZWQgdGhlIHN1YnN5c3RlbSBk
aXJlY3RvcmllcyBtYW51YWxseS4gV2hlblxwYXINCkkgY2FsbGVkIFRvb2xzLUNyZWF0ZSBzdWJz
eXN0ZW0gYW5kIHRyaWVkIGFnYWluLCBpdCB3b3JrZWQuIFNvIGl0XHBhcg0Kc2VlbXMgdGhhdCB0
aGUgY29tbWFuZCBsZWF2ZXMgYSB0cmFjZSB0aGF0IERpYWxvZy5NYXBTdHJpbmcgKGF0IGxlYXN0
KVxwYXINCnVzZXMgd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QogICBvd25lci1ibGFja2JveEBvYmVyb24uY2hccGFy
DQpccGFyDQpDdXJyZW50IHBvc3RpbmcgcG9saWN5OlxwYXINClxwYXINCmEpIFRvIHBvc3QgeW91
IHNob3VsZCB1c2UgdGhlIHNhbWUgYWRkcmVzcyBieSB3aGljaCB5b3UgYXJlIHN1YnNjcmliZWQg
dG8gdGhlIG1haWxpbmcgbGlzdC4gVGhhdCB3YXksIHRoZSBsaXN0IHNlcnZlciB3aWxsIHJlY29n
bml6ZSB5b3UgYXMgc3Vic2NyaWJlciBhbmQgZm9yd2FyZCB5b3VyIHBvc3RpbmcgaW1tZWRpYXRl
bHksIHdpdGhvdXQgY3JlYXRpbmcgYW55IG92ZXJoZWFkLlxwYXINClxwYXINCmIpIElmLCBmb3Ig
c29tZSByZWFzb24sIHlvdSBjYW5ub3QgcG9zdCBmcm9tIHRoZSBhZGRyZXNzLCBieSB3aGljaCB5
b3UgYXJlIHN1YnNjcmliZWQsIHlvdXIgbWVzc2FnZSB3aWxsIGJlIG1vZGVyYXRlZCB0byBhdm9p
ZCBzcGFtLiBQbGVhc2UgdW5kZXJzdGFuZCB0aGF0IG1vZGVyYXRpb24gd2lsbCBvZnRlbiBjYXVz
ZSBzb21lIGRlbGF5LCBpbiBwYXJ0aWN1bGFyIG92ZXIgd2Vla2VuZHMgb3IgaG9seWRheX19ACwg
aXQgd29ya2VkLg==


----boundary-LibPST-iamunique-252524226_-_---
Received on Sun Dec 07 2003 - 13:49:45 UTC

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