Hey all,
I am developing a custom routine (in C#/.NET) to generate Custom Logical Units (CLUs) and all the custom field attributes to go along with them. My goal is to be able to point to a DBF file (Foxpro data) and create a CLU that matches the structure of the DBF column for column. And it works!
Except for one thing. Though I add the custom fields to the CLU in the order the columns are found in the DBF (from left to right, by ordinal position), when the CLU is published and the _CLT is created, the fields are in alphabetical order. It is not a big deal, but it would be nice to be able to compare the resulting CLT column by column to the original DBF and verify that data types and sizes look good. This is easier to do if columns are in the same ordinal position.
Any way to control the order of the table columns? When I look at custom attributes we have added to existing LUs I see those fields are in alpha order as well, unless a field is added later on -- then it is attached to the end of the structure. I am assuming that if a CLU is published, that commits the structure, and fields added afterward are added in order? That means I could add fields one at a time and Approve/Publish between each field addition, but that sounds time consuming and database-intensive (I have it automated, but still). I’d rather control the ordinality of the columns as I add them all at once.
Anyone know how to do that? Is it possible?
Thanks,
Joe Kaufman