*
(E-Mail Removed) (Colin McGuire) scripsit:
> Sorry to ask a simple question on syntax but the line inside the
> subroutine "assignBitmapArray" won't compile giving me an "Expression
> Expected" error. What is the correct syntax to initialize an array of
> Objects/Bitmaps?
[...]
> Public Structure testStruct
> Dim testBitmap() As Bitmap
> End Structure
>
> Dim globalStruct As testStruct
>
> Private Sub assignBitmapArray
> globalStruct.testBitmap = {new Bitmap("c:\tb\WApp01\flower023.bmp")}
> End Sub
\\\
Public Structure testStruct
Dim testBitmap() As Bitmap
End Structure
Dim globalStruct As testStruct
Private Sub assignBitmapArray()
globalStruct.testBitmap = New Bitmap() {New Bitmap("c:\tb\WApp01\flower023.bmp")}
End Sub
///
--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>