Results 1 to 2 of 2

Thread: thinBasic-project 1.2021

  1. #1
    thinBasic MVPs ReneMiner's Avatar
    Join Date
    Oct 2012
    Location
    Germany
    Age
    51
    Posts
    1,422
    Blog Entries
    1
    Rep Power
    157

    thinBasic-project 1.2021

    The problem is, when i open a thinBasic-script it instantly is code.
    ThinAir should "learn" to apply all those things that were just checkboxes Option Explicit or the bundle options a few dropdowns, even the list of included files and directories - adding to be done with a common dialog or remove clicking a button for that and the editor will write it somewhere as this
    <?thinBasic version="1.2021.0.0" encoding="utf-8"?>
    <project name="myProject" MinVersion="1.2021" >
    <preparse>
        <directives>
           <directive="Option Explicit"/>
       </directives>
       <thinBundle>
           <bundle file="file" source="..." destination="..." Option="Value" />
           <bundle icon="..." />
           <bundle type="GUI"/>
          <bundle version="versioninfo" comment="comment" author="the Authorities etc."/>
       </thinBundle>
       <Uses>
           <use module="UI" />
           <use module="tokenizer" />
           <use module="ini" />
       </Uses>
       <Includes>
             <IncludeDir=".." />
             <Include="file.tbasicI" once="True" delayed="False" />
       </Includes>
       <Resources>
          <Resource file="myRes.rc" />
       </Resources>
       <Compilers>
           <compiledRegions>
           <regionsCount>3</regionsCount>
            <compiled region="1" name="name of compiled region to name the dll after" _
    file="name of scriptfile that contains  the region" line="..." language="powerbasic"/>
        <!-- scriptfile and line were if thinAir displays compiled sections as well as udts, subs and functions in separate codewindows to keep track on the position within the project -->  
            <compiled region="2" name="name of compiled region to name the dll after" _
    file="name of scriptfile that contains  
    the region" line="..." language="freebasic"/>
           <compiled region="3" name="name of compiled region to name the dll after" _
    file="name of scriptfile that contains  
    the region" line="..." language="visualbasic6"/>
           <!-- were also nice if the name of the compiled section could be used as _
    a CallCompiled "region"  to change the behaviour of a compiled function completely -->
       </compilers>
    </preparse>
    <udts>
      <type name="myUDT">
       Type myUdt
          x as whatever
    ' here a type definition including all its methoods & properties -complete all the code until:
       End Type
      </type>
    <union name ="someUnion">
       union someUnion
     ' also to be displayed on a separated page in the editor 
        RGBA(4) as Byte
        lColor As Long
      end union
    <union>
     <declarations> 
        '  here: a section on displayed top within the editor but actually placed to be very last of all
    .
        '   declarations section will contain all global dimensioned and declared stuff, equates and
    ' actually anything must be written into a declarations section. depending on the first keyword 
    'of the line the enter-key will transfer the line to be another section of code, that might be 
    ' keywords as "Type" or "Callback" or "Compiled", "Begin", "Function" or "Sub"-
     ' typed into declarations section will open a new codewindow/jump there in full view or 
    ' display every region as a separate page. if typing one of those keywords in other sections than 
    ' within declarations means either the function or sub belongs to the type above or are part of 
    ' the compiled region.  As a Sub within another sub is impossible thinAir could bug the user...   
      
    ' so here is some code that is outside any functions, type-definitions and compiled-regions. 
    ' This should be collected in  older scripts to be placed at the very end of the script 
    ' that thincore will get to execute.
     
    </declarations>
    <entry point="TBMain>
    Function TBMain()
    '...
    ' to be displaed on top of the code, right after declarations, actually the last function so thincore
    ' has to go over all the code before it gets here.  
    End Function
    ' HERE WILL NEVER ANYTHING EXIST - the line above is the last of the project
    </entry>
    <script name="file.tbasicI" >
         <!-- a placeholder actually that thinAir knows where the include is to position in view -->
    </script>
    <script name="myProjectmainscriptfile.tBasic">
    
      ' this is actually the main scripts program code that were in front of the declarations on execution
    ' all here must be inside of a function or sub so its likely to offer the view "by function" also
    </script>
    <final>
    ' its also an idea to provide a section of things to do when the program ends which is just a reminder only...
    </final> 
    </project>
    
    a little bit of structure... already ordered by the editor and a few rules to follow - actually is forcing the user to provide code in a certain order would certainly make it easier to exclude some error-sources.
    Users can not handle too much freedom. They need limitations to break them down
    Last edited by ReneMiner; 04-05-2021 at 23:32.
    running thinBasic in HP Pavillon Desktop 590 a0xxx 8GB Ram AMD A6-9225 Radeon R4 5Compute Cores 2C+3G @2.6GHz

    OS: downgraded again to Windows 10 Enterprise x64 10.0.18363 Build 18363 (1909)
    (alternate OS: modified WinRE - boot from a fake ramdisk - currently in "reconstruction mode")

  2. #2
    Member
    Join Date
    Aug 2015
    Location
    Keralam, India
    Posts
    120
    Rep Power
    18
    You mean, like the Add reference dialog in Visual Studio ?
    Thants a good idea.
    Well, I ThinBundle has a problem. It wants us to turn off the antivirus to do the bundling.

Similar Threads

  1. ThinBasic Adventure Builder Project
    By catventure in forum T.A.B. (ThinBasic Adventure Builder)
    Replies: 14
    Last Post: 05-09-2013, 10:26
  2. Project Euler 14
    By abyss in forum Math: all about
    Replies: 20
    Last Post: 31-05-2009, 12:36
  3. Project Name
    By Michael Clease in forum CM contest 2009
    Replies: 9
    Last Post: 16-10-2008, 12:22
  4. Project 10^100
    By ErosOlmi in forum General
    Replies: 1
    Last Post: 26-09-2008, 03:05
  5. Looking 4 Thinbasic programmer in Phoenix for project
    By tstevens96 in forum Shout Box Area
    Replies: 6
    Last Post: 21-01-2007, 01:15

Posting Permissions

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