Range must be bounded by constant expressions

In reply to vishalkewlani:

Hello Guys,

I am facing the same problem with 2variables.

offset = DFF_data[ ((2j)+7):(2i) ];

Here i am having the 2 variables i&j.
So how to do part select.
Means to say that my width will vary.

Please answer the question.