CreateNumericContainerArray example for C++ Builder
void __fastcall TForm1::btnCreateNumericContainerArrayClick(TObject *Sender)
{
TW_UINT16 uItem[3];
TW_CAPABILITY twCap;
FillMemory ( &twCap, sizeof(TW_CAPABILITY), 0 );
twCap.Cap= ICAP_FILTER;
twCap.ConType= TWON_ARRAY;
uItem[0]= TWFT_RED;
uItem[1]= TWFT_GREEN;
uItem[2]= TWFT_BLUE;
LEADTwain1->CreateNumericContainerArray ( &twCap, TWAINNUMERICTYPE_TW_UINT32, 3, (void*)uItem );
LEADTwain1->SetCapability ( &twCap, LTWAIN_CAPABILITY_SET );
LEADTwain1->FreeContainer ( &twCap );
}