I have somewhere in my code a CallSubDelayed line... It all works as expected, unless I put, in the called sub, a sleep statement...
Then, the called sub becomes resumable and the CallSubDelayed errors stating something about a "void" value...
In the warnings I get the line complaining about a "possible coding error" and that it will be converted to string...
So, this is a limitation with resumable subs, or a bug?
Sub AppStart (Form1 As Form, Args() As String)
MainForm = Form1
MainForm.RootPane.LoadLayout("1") 'Load the layout file.
MainForm.Show
CallSubDelayed(Me,"Sub1")
End Sub
Private Sub Sub1
Log("Here")
Sleep(500)
Log("awake")
End Sub
I have now, it still works OK. The main form is very light (just one button), but the callsubdelayed call will cause sub1 not to be called until the AppStart sub has finished, wherever it is placed.