Prog compiles with F5 but not Alt1

Subu

Member
Licensed User
The following program compiles by F5 but Alt1 gives error:



Can any one tell me why? Part of code is here. Zip file is attached.

B4X:
Sub MakeBtnOnFormTtable ' Creates the buttons on the form Ttable 
   MakeButtonArray ("FormTtable", "btnTt", "ClickTtableBtn", txtFontSize.Text , txtStartPt.Text _
   , txtNoOfCols.Text , txtHeight.Text , StudentNumber)
End Sub

Sub MakeButtonArray (frmName, btnName, btnClickSubName, btnFontSize, StartRow, btnNoOfCols, btnHeight, btnTotalNo)
''    FUNCTIONS - Makes buttons via programming
   btnWidth = Int( 240/btnNoOfCols) 
   Ccol = 0
   Rrow = StartRow
   For btnNo = 1 To btnTotalNo
      AddButton (frmName, btnName&btnNo, Ccol, Rrow, btnWidth, btnHeight, btnNo) 
      Button(btnName&btnNo).fontsize = btnFontSize
      AddEvent(btnName&btnNo,click,btnClickSubName)
      Ccol = Ccol + btnWidth
      If Ccol >= 240 Then
         Ccol = 0
         Rrow = Rrow + btnHeight
      End If
   Next
End Sub
 

Attachments

  • Error.PNG
    13.6 KB · Views: 260
  • Mark.zip
    5.3 KB · Views: 250
Last edited:

Discorez

Member
Licensed User
Longtime User
At me it is launched (F5) and compiled (Alt+1) successfully...
Maybe your B4PPC installation is corrupted?
 

Subu

Member
Licensed User
Maybe. Just bought B4PPC today.
Erel help plz
Should i uninstall & re install it?
 

Subu

Member
Licensed User
I removed & re installed b4ppc still facing same problem
Also i can make exe files of other simpler progs. So that means i have full & not demo version.
Only this one has problem at line 36.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…