Sytze de Boer wrote: > Sorry for such a basic foxpro issue, > Please help me out > > I have a table where the 1st column is a constant called CODE, but the next > 12 columns will not always be called the same. > e.g., Depending on the period of the report, the 2nd column could be called > C_2006_01 or C_2008_01 (3rd column same, etc) > I see that there are several replies to this already, so it's probably been answered, but how I handle that is to have a cursor with hard-coded field names (ie, c01, c02, etc), fill them with the correct values at run time, and then have private variables which I set to the correct names "C_2006_01", and I use these variables as the labels for the report columns.
So, for example, my report expression field is always "C01", but the label above it can change to say "C_2008_01", "C_2009_12", "Bob", etc. _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

