BarryW Active Member Licensed User Longtime User Aug 18, 2016 #1 Tnx. In my class i have Code: Copy 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. Code: Copy log(sql.sql1) log(sql.sql2) log(sql.sql3) log(str.string1) log(str.string2) Im trying to create library from compile to library
Tnx. In my class i have Code: Copy 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. Code: Copy 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 Aug 18, 2016 #2 Make the subs public then you'll have the sub name appear after the object name that is defined as the class. Upvote 0
Make the subs public then you'll have the sub name appear after the object name that is defined as the class.
Erel B4X founder Staff member Licensed User Longtime User Aug 18, 2016 #3 You should always use Public for public subs, though it will not change the way the subs are listed. The object instance name is not important (str and sql in your example). If you want to list only some of the subs then you should split your class into two classes. Upvote 0
You should always use Public for public subs, though it will not change the way the subs are listed. The object instance name is not important (str and sql in your example). If you want to list only some of the subs then you should split your class into two classes.