...read values from string resource (*.res)?

Author: Simon Grossenbacher
Homepage: http://www.swissdelphicenter.ch

Category: Strings

implementation

{$R *.DFM}

{$R test.res} //Your resource file

procedure TForm1.Button1Click(Sender: TObject);
var
  
buffer: array[0..255] of Char;
begin
  
Loadstring(hinstance, 1, @buffer, 255);  //1 = first string
  
label1.Caption := StrPas(buffer);
end;

 

printed from
www.swissdelphicenter.ch
developers knowledge base