Cancel
Showing results for 
Search instead for 
Did you mean: 

Exporter services from method

Creator
Creator

Hello, I am trying to asignate the services os a exporter with a method but I obtain an error when I run the code (a 'string' cannot accept the method 'Services').

Anyone could help me?

 

The code is:

..........

for i:=1 to data.yDim loop
 if Data[2,i]="Exporter" then
  listatrabajos:=splitstring(data[7,i],","); 
  .Models.Frame.data[1,i].services:=listatrabajos; 
 else
 end;
next;

 

The table called data is

Boceto22.png

1 REPLY

Re: Exporter services from method

Phenom
Phenom

try    

 

str_to_obj(.Models.Frame.data[1,i]).services:=listatrabajos; 

 

or probably even better  

 

str_to_obj(data[1,i]).services:=listatrabajos;