I'm on the home stretch of finishing my B4X Launcher app, and some code that should work is throwing me a NullPointerException.
Note that I'm calling the TextFields from another module (It's the way I separate logic from the GUI.)
Note 2: I have "MainForm" declared in my Initialize Sub.
Any ideas?
Note that I'm calling the TextFields from another module (It's the way I separate logic from the GUI.)
Note 2: I have "MainForm" declared in my Initialize Sub.
B4X:
Sub Handle_CreateProjectButton_Action
If Main.ProjectNameField.Text.Length = 0 Then
fx.Msgbox(MainForm, "I'm not detecting a name for your project. Please supply a name!", "No Name")
Else If Main.ProjectLocationField.Text.Length = 0 Then
fx.Msgbox(MainForm, "I'm not detecting a location for your project. Plase select a folder for your project by clicking the ""Open"" button.", "No Location")
Else If Main.CustomControlNameField.Text.Length = 0 Then
fx.Msgbox(MainForm, "I'm not detecting a name for the initial custom control module. Please supply a name for it!", "No Name")
Else
CreateProject
End If
End Sub
Any ideas?
Last edited: