http://msdn.microsoft.com/library/default.asp?url=/library/en-us/automat/html/b794b8c6-a523-4636-8681-a936dff3fc6f.asp писал(а):Creates a one-dimensional array whose lower bound is always zero.
...
lLbound
The lower bound for the array.
ы?
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/automat/html/b794b8c6-a523-4636-8681-a936dff3fc6f.asp писал(а):Creates a one-dimensional array whose lower bound is always zero.
...
lLbound
The lower bound for the array.
Option Explicit
Private Declare Function SafeArrayCreateVector Lib "oleaut32" (ByVal ntype As Integer, ByVal nLBound As Long, ByVal cEleents As Long) As Integer()
Dim nArr() As Integer
Private Sub Form_Load()
nArr = SafeArrayCreateVector(2, 10, 20)
MsgBox LBound(nArr)
End
End Sub
Dim nArr() As Integer
ReDim Arr(-10 To 10)
tyomitch писал(а):Ладно, зато SafeArrayCreateVector позволяет создавать пустые массивы (0 To -1): голым VB так нельзя
Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 110