Thanks....I saw that in the Help, but for SOME reason I thought it was a lot
more complicated than that.....maybe I was thinking of getting wave files or
other things from the resource file...oh well thats cool.
The think I DID notice tho, if you try to see the string from a resource
using the method you suggested, when yuo debug through, the value assigned
to MyString is returned as black by the IDE debugger, but if you assign it
to a messagebox or the like, it returns the value....just a qurky think.
Jeremy
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Nello Sestini
Sent: Tuesday, July 25, 2000 1:52 PM
To: Multiple recipients of list delphi
Subject: Re: [DUG]: Strings In resources
mystring := LoadStr( ResID );
is this what you mean?
this is the "retro" way of doing it. the preferred way
is to use "resoursestring" constants - but it sounds like
you already have the resources bound to the IDs some other
way so the above should work.
rgds
ns
-----Original Message-----
From: Jeremy Coulter <[EMAIL PROTECTED]>
To: Multiple recipients of list delphi <[EMAIL PROTECTED]>
Date: 25 July 2000 08:46
Subject: [DUG]: Strings In resources
>can some PLEASE remind my HOW you get strings from a resource file (based
on
>their resource ID).
>For some STRANGE reasone the code I had written to do this has gone MISSING
>!
>
>Cheers,Jeremy Coulter (Software Development Team Leader)
>Triton Commercial Systems
>6A Burdale Street
>Riccarton
>Christchurch
>( +64 3 3483973 Fax +64 3 3431613
>http://www.tritoncomsys.com
>
>
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz