Results 1 to 6 of 6

Thread: making Subs/Functions private to .tBasicU-file?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    thinBasic MVPs
    Join Date
    Oct 2012
    Location
    Germany
    Age
    54
    Posts
    1,533
    Rep Power
    171

    making Subs/Functions private to .tBasicU-file?

    I want to create some additional Unit-Files with some subs that should only be accessable to the particular unit-file itself. So I would write for example

    Private Sub mySub()
    '...
    End Sub
    
    but help does not tell anything about keyword Private even though it gets colored blue and capitalized in the script.

    So I want to make sure: can just variables be private properties to the unit-file or are subs and functions also allowed?

    Can two different unit-files have the same titled private subs/functions also?

    And some additional small question:
    Can a function call itself (recursive)?
    Last edited by ReneMiner; 15-02-2013 at 15:39.
    I think there are missing some Forum-sections as beta-testing and support

Similar Threads

  1. Rap Music and Private Prisons
    By danbaron in forum Shout Box Area
    Replies: 0
    Last Post: 04-05-2012, 20:58
  2. Using Oxygen subs and functions in thinBasic
    By Charles Pegge in forum O2h Compiler
    Replies: 0
    Last Post: 18-03-2009, 13:25

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •