B4J Question Code between <code> and </code> returns 'invalid description' with intellisense

Mashiane

Expert
Licensed User
Longtime User
Ola

I need some advise. I have code for copy purposes written in my lib, its rather long and now it returns an "invalid description" with intellisense. What am I missing?

B4X:
'<code>
'Dim dt1 As VueDataTable = vuetify.AddDataTable(Me, "r1c1", "dt1")
'dt1.Title = "DataTable"
'dt1.AddSpacer
'dt1.AddNew(vc)
'dt1.AddDivider
'dt1.AddClearSort(vc)
'dt1.AddDivider
'dt1.AddFilter(vc, "primary--text")
'dt1.AddDivider
'dt1.AddClearFilter(vc)
''add columns 
'dt1.AddColumn("col1", "Column1")
'dt1.SetFilterable(Array("col1", "col2"))
'dt1.AddAvatarImg("avatar", "Profile")
'dt1.AddSwitch("active", "Active")
'dt1.AddRating("rating", "Performance")
'dt1.AddProgressLinear("projects", "Projects")
'dt1.SetProgressLinearDimensions("projects", "orange", "25", True)
'dt1.AddProgressCircular("tasks", "Completed")
'dt1.SetProgressCircularDimensions("tasks", "green", "-90", "46", "8")
'dt1.AddImage("image", "Image")
'dt1.SetImageDimensions("image", "80px", "80px")
'dt1.AddLink("sendto", "Email To", "_blank")
'dt1.AddIconView("icon", "Icon", "item.color")
'dt1.SetColumnPrefix("sendto", "mailto:")
'dt1.AddColumn("datetaken", "Date Taken")
'dt1.SetColumnType("datetaken", dt1.COLUMN_DATE)
'dt1.SetColumnDateFormat("datetaken", "ddd, DD MMM YYYY")
'dt1.AddColumn("lat", "Latitude")
'dt1.AddColumn("lng", "Longitude")
'dt1.SetColumnNumberFormat("lat", "0.00")
'dt1.SetColumnNumberFormat("lng", "0.00")
''add actions
'dt1.AddEdit
'dt1.AddDelete
'dt1.AddClone
'dt1.AddPrint
'dt1.AddSave
'dt1.AddCancel
'dt1.AddDownload
'dt1.AddMenuV
'dt1.SetIconDimensions("edit", "", Vuetify.COLOR_GREEN)
'dt1.SetIconDimensions("delete", "", Vuetify.COLOR_RED)
'dt1.SetIconDimensions("clone", "", Vuetify.COLOR_AMBER)
'dt1.SetIconDimensions("print", "", Vuetify.COLOR_BLUE)
'dt1.SetIconDimensions("save", "", Vuetify.COLOR_BLUEGREY)
'dt1.SetIconDimensions("cancel", "", Vuetify.COLOR_BROWN)
'dt1.SetIconDimensions("download", "", Vuetify.COLOR_CYAN)
'dt1.SetIconDimensions("menu", "", Vuetify.COLOR_INDIGO)        
'vc.BindVueTable(dt1)
''add subs
'
'Sub dt1_filter_click(e As BANanoEvent)
'    dt1.ApplyFilter(vc)
'End Sub
'
'Private Sub dt1_add_Click (e As BANanoEvent)
'End Sub
'
'Private Sub dt1_clearsort_click (e As BANanoEvent)
'    dt1.ClearSort(vc)
'End Sub
'
'Private Sub dt1_clearfilter_click (e As BANanoEvent)
'    dt1.ClearFilter(vc)
'End Sub
'
'Sub dt1_itemselected (item As Map)
'End Sub
'
'Sub dt1_Save (item As Map)
'End Sub
'
'Sub dt1_Edit (item As Map)
'End Sub
'
'Sub dt1_Delete (item As Map)
'End Sub
'
'Sub dt1_Print (item As Map)
'End Sub
'
'Sub dt1_Cancel (item As Map)
'End Sub
'
'Sub dt1_Change (item As Map)
'End Sub
'
'Sub dt1_Download (item As Map)
'End Sub
'
'Sub dt1_Menu (item As Map)
'End Sub
'
'Sub dt1_Clone (item As Map)
'End Sub
'</code>
Sub AddDataTable(Module As Object, parentID As String, elID As String) As VueTable
    Dim elx As VueTable
    elx.Initialize(Module, elID, elID)
    elx.AddToParent(parentID)
    Return elx
End Sub
 

stevel05

Expert
Licensed User
Longtime User
I just tried pasting the whole of the <code> block above a sub and it works as expected for me.
 
Last edited:
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…