hexagon logo

Assigning variables

I am trying to figure out if I can use a basic program to assign variables to features for data transfer. I have three parts, hopefully more in the future, that I measure everyday. They are very similar and use most all of the same feature #s and Variable #s. currently, I am assigning all variable in each part program, then writing the data to a .txt file that gets picked up by a SQL Server. Instead of writing everything out in each Part .prg, I would like to write a basic routine to do this so that I only have to modify one document to get the data for all 3 .prg's. Is this possible?