Declaring a dynamic array not working as expected
RsProxyList.Open objDBCommand,,1,1 dim recCount:recCount = RsProxyList.RecordCount Dim output(recCount,2) I get an error because recCount is of wrong type. I have tried to convert it to Int but that does not work either. The following works fine: RsProxyList.Open objDBCommand,,1,1 dim recCount:recCount = RsProxyList.RecordCount Dim output(3,2) How do I convert recCount to get this array declaration to work? Lankymart You need to first declare your Array as dynamic then use ReDim to set the first dimension dynamically, like this; Dim output() 'Declare a "Dynamic Array" ReDim output(recCount, 2)