Hi @Mansour_Dalir ,
Since you do not explain the meaning of intStart and intCount, the following code speculates that intStart is the index of the starting column, and intCount is the number of columns that need to be fetched backwards.
Dim Result As String() = MyDataTable.Rows(0).ItemArray.Skip(intStart - 1).Take(intCount + 1).Select(Function(item) item.ToString()).ToArray()
Best Regards.
Jiachen Li
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.