Android Question Newbie passing integer value during CallSub question

tseyfarth

Member
Licensed User
Longtime User
Hello all,

This is a bit embarrassing.. but I get an error on compilation when I try to call a sub and pass an integer to it.

CallSub SetTextSizeAllViews(20) <==== I get a compiler error here

Sub SetTextSizeAllViews(siz As Int)

This is so basic and yet for an equally strange reason, I cannot find any info on this. Can anyone tell me
A) Where to get the docs on this?
B) What am I doing wrong??

Thanks all,
Tim
 

tseyfarth

Member
Licensed User
Longtime User
Why do you need to use CallSub at all? Where is this sub declared?

Hello Erel and Don,
Thank you both for your replies!

@Don - I took a look at the sub and the calling line. I cannot see the problem.
@ Erel - I added a module called Text_Size. It is being called from the main module inside Activity_Create.

Actually until this occurred, I did not realize that using only "Call" or nothing would not work. Perhaps too many IDE's each with their own special syntax- and my assumption previously that this would be similar or the same. But somewhere I missed a whole bunch of important info it seems.

TIm
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…