Activity Module Troubles (maybe CallSub)

Kight Riot

Member
Licensed User
Longtime User
In a question I read, Erel mentioned that using Modules (Code/Activity) can help to keep code clean and different Activities and/or processes separated and therefore less confusing. Since I am still green in the programming world, I wanted to try and get a good habit of doing just that. Even though the app I am working on is small, I can see how easily things could get out of hand. So, I made an Activity Module and put a chunk of code that I felt was all part of one Activity. The code goes from the main menu to the first Activity with ...

CallSub(first_letter, "firstLetterActivity")

first_letter = the name of the Activity Module
firstLetterActivity = the Sub I want to start

I have actually used this new Activity as an app itself, so I'm am not sure that the coding once in the new Activity is wrong. I'm sure that the CallSub is either improperly used or just wrong altogether.

Any thoughts?

Thanks
 
Top