I created a pseudo array using setoct. The function will accept more than 20 octets with letters or numbers well beyond 255.
string @VLANControl
int @dVLANValue
int @dVLAN1
int @dVLAN100
int @dVLAN101
int @dVLAN102
int @dVLAN103
int @dVLAN104
int @dVLAN105
int @dVLAN150
int @dVLAN190
int @dVLAN200
int @dVLAN401
int @dVLAN402
int @dVLAN600
int @dVLAN601
int @dVLAN700
int @StandardVLAN
@dVLANValue = 0
@StandardVLAN = 0
@dVLANname = 'Not Set'
@VLANControl = '000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000.000'
@dVLAN1 = 1
@dVLAN100 = 2
@dVLAN101 = 3
@dVLAN102 = 4
@dVLAN103 = 5
@dVLAN104 = 6
@dVLAN105 = 7
@dVLAN150 = 8
@dVLAN190 = 9
@dVLAN200 = 10
@dVLAN401 = 11
@dVLAN402 = 12
@dVLAN600 = 13
@dVLAN601 = 14
@dVLAN700 = 15
//
if (@itemnum == '1')
{
@VLANControl = setoctet (@VLANControl, @dVLAN1, @itemnum)
@StandardVLAN = 1
}
if (@itemnum == '100')
{
@VLANControl = setoctet (@VLANControl, @dVLAN100, @itemnum)
@StandardVLAN = 1
}
if (@itemnum == '101')
{
@VLANControl = setoctet (@VLANControl, @dVLAN101, @itemnum)
@StandardVLAN = 1
}
if (@itemnum == '102')
{
@VLANControl = setoctet (@VLANControl, @dVLAN102, @itemnum)
@StandardVLAN = 1
}
if (@itemnum == '103')
{
@VLANControl = setoctet (@VLANControl, @dVLAN103, @itemnum)
@StandardVLAN = 1
}
if (@itemnum == '104')
{
@VLANControl = setoctet (@VLANControl, @dVLAN104, @itemnum)
@StandardVLAN = 1
}
if (@itemnum == '105')
{
@VLANControl = setoctet (@VLANControl, @dVLAN105, @itemnum)
@StandardVLAN = 1
}
if (@itemnum == '150')
{
@VLANControl = setoctet (@VLANControl, @dVLAN150, @itemnum)
@StandardVLAN = 1
}
if (@itemnum == '190')
{
@VLANControl = setoctet (@VLANControl, @dVLAN190, @itemnum)
@StandardVLAN = 1
}
if (@itemnum == '200')
{
@VLANControl = setoctet (@VLANControl, @dVLAN200, @itemnum)
@StandardVLAN = 1
}
if (@itemnum == '401')
{
@VLANControl = setoctet (@VLANControl, @dVLAN401, @itemnum)
@StandardVLAN = 1
}
if (@itemnum == '402')
{
@VLANControl = setoctet (@VLANControl, @dVLAN402, @itemnum)
@StandardVLAN = 1
}
if (@itemnum == '600')
{
@VLANControl = setoctet (@VLANControl, @dVLAN600, @itemnum)
@StandardVLAN = 1
}
if (@itemnum == '601')
{
@VLANControl = setoctet (@VLANControl, @dVLAN601, @itemnum)
@StandardVLAN = 1
}
if (@itemnum == '700')
{
@VLANControl = setoctet (@VLANControl, @dVLAN700, @itemnum)
@StandardVLAN = 1
}
string @VLANControl1 = getoctet (@VLANControl,1)
string @VLANControl2 = getoctet (@VLANControl,2)
string @VLANControl3 = getoctet (@VLANControl,3)
string @VLANControl4 = getoctet (@VLANControl,4)
string @VLANControl5 = getoctet (@VLANControl,5)
string @VLANControl6 = getoctet (@VLANControl,6)
string @VLANControl7 = getoctet (@VLANControl,7)
string @VLANControl8 = getoctet (@VLANControl,8)
string @VLANControl9 = getoctet (@VLANControl,9)
string @VLANControl10 = getoctet (@VLANControl,10)
string @VLANControl11 = getoctet (@VLANControl,11)
string @VLANControl12 = getoctet (@VLANControl,12)
string @VLANControl13 = getoctet (@VLANControl,13)
string @VLANControl14 = getoctet (@VLANControl,14)
string @VLANControl15 = getoctet (@VLANControl,15)
CLI {! @VLANControl1 @VLANControl2 @VLANControl3 @VLANControl4 @VLANControl5}
CLI {! @VLANControl6 @VLANControl7 @VLANControl8 @VLANControl9 @VLANControl10}
CLI {! @VLANControl11 @VLANControl12 @VLANControl13 @VLANControl14 @VLANControl15}
OUTPUT
! VLAN Control: 000.000.000.102.000.000.000.150.000.200.000.000.600.601.700.000.000.000.000.000
! 000 000 000 102 000
! 000 000 150 000 200
! 000 000 600 601 700