B4J Question Callsub ...

BarryW

Active Member
Licensed User
Longtime User
Tnx.

In my class i have

B4X:
sub sql1 as string
return 1
end sub

sub sql2 as string
return 2
end sub

sub sql3 as string
return 3
end sub

sub string1 as string
return "string1"
end sub

sub string2 as string
return "string2"
end sub

sub string3 as string
return "string3"
end sub

i want to seperate this like when i type sql. only sql function will appear and when i type str. on string function will appear. How to do that?

E.q.

B4X:
log(sql.sql1)
log(sql.sql2)
log(sql.sql3)
log(str.string1)
log(str.string2)

Im trying to create library from compile to library
 

derez

Expert
Licensed User
Longtime User
Make the subs public then you'll have the sub name appear after the object name that is defined as the class.
 
Upvote 0
Top