Code Modules

iancasey

Member
Licensed User
Longtime User
Adding code modules don't seem to work here,
I tried to add some generic functions Left() Right() Len() Parse() and others that I use alot into a code module.
I get errors until I move those functions back to the Main code block.

"Error description: Undeclared variable 'len' is used before it was assigned any value."

I guess I am missing something basic here.

Ian
 

NJDude

Expert
Licensed User
Longtime User
You will have to prefix those with the name of the module you put them on, for example, assuming you put them in a module name: "MyFuncs" you should then do:
B4X:
MyFuncs.Left(...)
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…