How to create an array of Integers

Hello Everyone,

I have two integere variables:

int_CurrentPage = 1
int_MaximumnumberOfPage = Could be any number lets say 10

How do I create an array of integer from 1 to 10 ? OR from Currentpage to MaximumNumberof page?

Thanks you

Hello,

You can use this syntax:
image

In your case:

Enumerable.Range(int_CurrentPage,int_MaximumnumberOfPage).ToArray()

Best,
Charbel

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.