Showing results for 
Search instead for 
Do you mean 
Reply

Setting two tablefiles equal to each other

Hi Forum

 

I have a frame(B) within in frame(A) and in each of these frames are tablefiles that are exactly the same. I am importing data from an excel file into tablefile(A). I then want to write a method that sets these tablefiles equal to each other.

 

for example: FrameB.TablefileB := TablefileA

 

but is gives me an error.I can use a for loop but isn't there a quicker way?

 

Thanks

2 REPLIES

Re: Setting two tablefiles equal to each other

try <tableFile>.copyRangeTo(...) see help

Steffen Bangsow
freelance simulation specialist  
web: www.bangsow.eu
mail: steffen@bangsow.net


Re: Setting two tablefiles equal to each other

  1. create a class for your table
  2. instantiate it in all frames you need it
  3. create an attribute method named init at this class (@.inheritContents:=true)
  4. import your file into the class
  5. when ever you import a file again an press init or start each instance of the class will have the same content

Regards

Always consider using the AttributeExplorer!