taylor-design wrote:
timehacker11 wrote:
I am assuming it isn't possible like a lot of things aren't but are in single platform languages
I'm not sure what you mean by this last comment. What you're asking about has nothing to do with single vs. cross platform.
That said, there is no ListBox.SelectedItem method. So you would need to do something like:
Dim i As Integer = Listbox1.ListIndex
If i < 0 Then
MsgBox("Boo! No files selected!")
ElseIf ListBox1.Cell(i,0).InStr("szs") > 0 Then
MsgBox("You've selected a SZS File!")
ElseIf ListBox1.Cell(i,0).InStr("brres") > 0 Then
MsgBox("You've selected a BRRES file!")
Else
MsgBox("Boo! No Nintendo files selected!")
End If
You could use Extends to add functions like "SelectedItem" to ListBox, and "Contains" to string.
Thanks for the code.
@Karen: I infact did look in the LR, but I'm so used to VB.NET where every piece of code is "Englishified". For example, VB.NET has the SelectedItem method, while RealBasic does not, atleast not by default.
@taylor design: I've just looked into the Extends method in the LR, and it looks amazing and super powerful. Will do some experimentation with it. Although where would I put it? In a class method?