Recent

Author Topic: var as xmlpropstorage.filename - cannot read the file  (Read 1462 times)

Jakub2016

  • New member
  • *
  • Posts: 7
var as xmlpropstorage.filename - cannot read the file
« on: October 09, 2016, 04:53:51 pm »
Hello,

I am trying to load the xml storage by using a var from stringgrid.items[1,2], its a number then I begin like this....
unit 1
var
fname ,batch: string

procedure pickdata(stringgrid1:tstringgrid);
Begin

  batch:=grid.cells[0,i];
  fname:=batcht+'.xml';


end;



unit2

....


implementation

uses
unit1;

procedure loadfile ( xmlpropstorage1 : Txmlpropstorage);
Begin
 
    xmlpropstorage1.FileName:='storage/profiles/'+fname;    // var from form1


end;


and the file hasn't been loaded , any suggestions ?


regards

 

TinyPortal © 2005-2018