Mysterious message re "indicator" while Debug

mjcoon

Well-Known Member
Licensed User
I got the attached pop-up message from the desktop IDE while debugging the following code:
B4X:
Public Sub MoveMenuToForm(formName As String, moduleName As String)
   MainMenuObj.NewMainMenu
   MenuItemObj.ControlRef = MainMenuObj.SavedMenuItem(0)   'Switch item
   MainMenuObj.AddMenuItem(MenuItemObj.ControlRef)

   index = FormsMenuList.IndexOf(formName)
   If index > -1 Then
      MenuItemObj.ControlRef = MainMenuObj.SavedMenuItem(index + 1)
      MainMenuObj.AddMenuItem(MenuItemObj.ControlRef)
   End If

   MainMenuObj.AddMainMenu(moduleName & "." & formName)
End Sub

What is an "indicator"?

(I was trying to find out why the IndexOf() method was not yielding the expected result.)

BTW trying to look up Add() in Basic4ppc - Main Help gives a "missing page" error.

Mike.
 

Attachments

  • indicatorNot=0.JPG
    indicatorNot=0.JPG
    20.6 KB · Views: 252

mjcoon

Well-Known Member
Licensed User
Seems like the IDE tried to highlight an empty row for some reason.
Can you reproduce it?

Hi Erel, sorry, now I've cured my problem with IndexOf() (string case was wrong) I have not seen the problem again.

Regards, Mike.
 
Top