I haven't tried it, but -

Variable.0[X] = Y

Should work