Sandman Expert Licensed User Longtime User Dec 14, 2023 #1 I've got a type definition in a cross-platform project: Code: Type typeSomething( _ classname As String, _ displayname As String, _ description As String, _ ) Works like a charm in B4A and B4J, but when I use B4i I get a compaint about "description is not a valid identifier". Sounds strange, but I confirmed that if I rename it to something less fitting for my scenario, the type is indeed accepted. Is this the expected behaviour? (It feels like it might be a bug, because why would "description" be off-limits? And if so, what other identifiers are verboten?)
I've got a type definition in a cross-platform project: Code: Type typeSomething( _ classname As String, _ displayname As String, _ description As String, _ ) Works like a charm in B4A and B4J, but when I use B4i I get a compaint about "description is not a valid identifier". Sounds strange, but I confirmed that if I rename it to something less fitting for my scenario, the type is indeed accepted. Is this the expected behaviour? (It feels like it might be a bug, because why would "description" be off-limits? And if so, what other identifiers are verboten?)
Solution Alessandro71 Dec 14, 2023 Error message only in B4i: "block is not a valid identifier" this simple (sample) sub causes an error only in B4i all is fine in B4A and B4J Private Sub test(block As Int) As Int Return block + 1 End Sub renaming "block" to "bblock" removes the message sample project attached www.b4x.com there are some reserved words in B4i. it would be nice to have a warning in the IDE
Error message only in B4i: "block is not a valid identifier" this simple (sample) sub causes an error only in B4i all is fine in B4A and B4J Private Sub test(block As Int) As Int Return block + 1 End Sub renaming "block" to "bblock" removes the message sample project attached www.b4x.com there are some reserved words in B4i. it would be nice to have a warning in the IDE
Alessandro71 Well-Known Member Licensed User Longtime User Dec 14, 2023 #2 Error message only in B4i: "block is not a valid identifier" this simple (sample) sub causes an error only in B4i all is fine in B4A and B4J Private Sub test(block As Int) As Int Return block + 1 End Sub renaming "block" to "bblock" removes the message sample project attached www.b4x.com there are some reserved words in B4i. it would be nice to have a warning in the IDE Upvote 0 Solution
Error message only in B4i: "block is not a valid identifier" this simple (sample) sub causes an error only in B4i all is fine in B4A and B4J Private Sub test(block As Int) As Int Return block + 1 End Sub renaming "block" to "bblock" removes the message sample project attached www.b4x.com there are some reserved words in B4i. it would be nice to have a warning in the IDE
udg Expert Licensed User Longtime User Dec 14, 2023 #3 Another one is: cmd I had it in a type definition (Cmd as Int); changed it to Cmd1 .. and we all are happy Upvote 0
Another one is: cmd I had it in a type definition (Cmd as Int); changed it to Cmd1 .. and we all are happy