Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Sub or Function not defined


Meisterstuck
 Share

Recommended Posts

So I opened up my old ass Konfuse vbp and then just went to hit make .exe, and vb is telling me "Compile error, sub or function not defined" about
```
Private Sub Form_Load()
Dim i As Long
Dim Ending As String

    For i = 1 To 3
        If i = 1 Then Ending = ".gif"
        If i = 2 Then Ending = ".jpg"
        If i = 3 Then Ending = ".png"

        If FileExist("GUI\MainMenu" & Ending) Then frmMainMenu.Picture = LoadPicture(App.Path & "\GUI\MainMenu" & Ending)
    Next i

        Call MainMenuInit

End Sub

```
So the FileExist is the problem. Wat do?
Link to comment
Share on other sites

Simply means you don't have that sub anywhere in your code.. Or declared as a private where it should be public.

Anyhow, we no longer support those old engines, and are working with Eclipse Origins at this point in time. So I don't think there's a great deal of people that know about the issues with this engine.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...