0

I have an array set up to receive the names of forms when they open. The form name is sent as a Form not a String therefore when I run my code I cannot check for whether the field is empty in the normal way (ie. array(1) = "") as the "" are only usable with strings!

Dim Forms(24) As Form
Dim i As Integer
Dim Free As Integer = -1

Do
  If Forms(i) =  Then
    Free = CInt(i)
  End If
Loop Until Free <> -1

I only need a solution to do the same as array(1)="" but for windows forms.

Thanks for the help!

2
Contributors
2
Replies
3
Views
6 Years
Discussion Span
Last Post by Formby
0

Works perfectly, as usual with this brilliant forum!

Thanks for the help, it's really boosting my along with my computing coursework as waiting for tutors to reply is lonnnggg... :)

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.