[ ax2012 ] compare layer bug in CU6

c1 = comboBox1.id();

c2 = comboBox2.id();
intersectionComparisonField = dialog.addField(enumStr(NoYes), "@SYS119910", "@SYS119911");

select count(RecId) from newLayer exists join newLayerData where newLayer.recid == newLayerData.Layer;
comboBox1.items(int642int(newLayer.RecId));
// ST Phong.ek
comboBox2.items(int642int(newLayer.RecId));
// ED Phong.ek

i = 1;
while select Layer from newLayer exists join newLayerData where newLayer.recid == newLayerData.Layer
{
comboBox1.item(i);
comboBox1.text(enum2str(newLayer.Layer));

// ST Phong.ek
comboBox2.item(i);
comboBox2.text(enum2str(newLayer.Layer));
// ED Phong.ek

i++;
}

select count(RecId) from oldLayer exists join oldLayerData where oldLayer.recid == oldLayerData.Layer;
// ST Phong.ek
//comboBox2.items(int642int(oldLayer.RecId));

//i = 1;
//while select Layer from oldLayer exists join oldLayerData where oldLayer.recid == oldLayerData.Layer
//{
// comboBox2.item(i);
// comboBox2.text(enum2str(oldLayer.Layer) + ' (baseline)');
// i++;
//}
// ED Phong.ek

ref : http://axbrasil.com/2013/11/19/compare-layer-tool-cu6-fix/

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s