I've finally got most all of the changes made to allow KB to compile. Down to what I think is the last one.
KB created a new file (dunno where it is exactly since it does not appear in the project explorer) called "default2.kbasic. It added lines of code as follows:
- Code: Select all
' --- Begin: Inserted by KBasic Atelier automatically ---
frmMain = New frmMain
frmMain.Open()
Application.Run()
' --- End: Inserted by KBasic Atelier automatically ---
The compiler complains "parser error: Beginning not declared in SUB/FUNCTION or GLOBAL Line 13....
Line 13 is the line below the code "' --- End: Inserted by KBasic Atelier automatically ---"
What is this? I could not find any reference to how to create the starting points for apps. The original VB6 code, was an ActiveX.EXE application. It would be nice if this one was the same way, but for the moment, just to get it to compile/create and exe would be fine! It does have a form (the original did not show the form but this one should).
Anyway, the original called this on start up:
- Code: Select all
option oldbasic
Option Explicit on
Public Sub Main()
frmMain.MSComm1.InBufferSize = 1024
frmMain.MSComm1.RTSEnable = True
Remotes.TotalRemotes = 0
SndString.TotalCommands = 0
' SndString.Cmd = False
SndString.Sent = True
ReDim SingleDrStatus(0)
End Sub
For KB, the references to MSCOMM1 have been remarked throughout.
Can anyone explain and/or point me to explanation/documentation for app start up - and what this error means?
Thank you!
Tim