Select multiple fields in X++ Select Statement

How do you select multiple fields in an X++ select statement. The following code below doesn’t work.

while select it.ItemGroupId, it.itemname from it
where it.Dimension[2] == “Blah Blah”
{
print “do something here…”;
}

Thanks,

Letron

Hi Letron,

try

while select ItemGroupId, itemname from it
where it.Dimension[2] == “BlahBlah”
{
print “do something here…”;
}

regards,

Mohammed

www.Dynamic-AX.co.uk

while select it.ItemGroupId, it.itemname from it where it.Dimension[2] == “Blah Blah” { print “do something here…”; }

how with it :

while select it where it.Dimension[2] == “Blah Blah”

{

ItemGroupId = it.itemGroupId; //get field1 value

itemName = it.itemNam; //get field2 value

print “do something here…”;

}