Results 1 to 5 of 5

Thread: thinBasic Beta 1.9.5.0

  1. #1
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,777
    Rep Power
    10

    thinBasic Beta 1.9.5.0

    thinBasic Beta 1.9.5.0

    Download from: http://www.thinbasic.biz/projects/th...ic_1.9.5.0.zip


    This is a real Beta in the sense there is a lot of new features all (more or less) to be finished and fully documented.
    So, please use this version only for testing and not for real production scripts.


    Have a look and please report any impression/problem/likes always remembering it is a beta!!!!!


    This is an emergency update over thinBasic Beta 1.9.4.0
    Fixed some weird bugs

    Few new functions working on UDT and memory handling.
    Some fixes and improvements




    Known bugs:
    among others (I hope not so many) I know there is a bug in this version when creating bundled exe. Some process can sometimes fail due to incorrect TOC inside Exe. I'm working on solving this problem asap.



    Ciao.
    Eros
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

  2. #2
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,128
    Rep Power
    732

    Post

    Thanks for the new release!

    I found a bit of typos in the help file:

    UDT_ElementByte
    • In the Syntax, there should be lPos = UDT_ElementByte(UdtElement)
    • In See also, there should be link to UDT_ElementOffset
    • The Example should be:

    Uses "Console"
    
    Type tUDT
      a As Byte
      b As Integer 
      c As Long 
    End Type                   
    
    Dim v As tUDT
    
    v.a = 1
    v.b = 2
    v.c = 3
    
    PrintL UDT_ElementByte(v.a), "(expected 1, as it is in the root)"
    PrintL UDT_ElementByte(v.b), "(expected 2)"
    PrintL UDT_ElementByte(v.c), "(expected 3)"
    
    WaitKey
    
    UDT_ElementOffset

    • In See also, there should be link to UDT_ElementByte
    • The Example should be:

    Uses "Console"
    
    Type tUDT
      a As Byte
      b As Integer 
      c As Long 
    End Type                   
    
    Dim v As tUDT
    
    v.a = 1
    v.b = 2
    v.c = 3
    
    PrintL UDT_ElementOffset(v.a), "(expected 0, as it is in the root)"
    PrintL UDT_ElementOffset(v.b), "(expected 1, because 0 + SizeOf(Byte) = 1)"
    PrintL UDT_ElementOffset(v.c), "(expected 3, because 0 + SizeOf(Byte) + SizeOf(Integer) = 3)"
    PrintL
    
    PrintL "The following will print 1, 2, 3"
    PrintL Peek(Byte   , VarPtr(v) + UDT_ElementOffset(v.a))
    PrintL Peek(Integer, VarPtr(v) + UDT_ElementOffset(v.b))
    PrintL Peek(Long   , VarPtr(v) + UDT_ElementOffset(v.c))
    PrintL
    
    WaitKey
    
    Version 1.9.x.x
    For clause inside ARRAY SCAN ... bug when insiede If/End If or For/Next or in Function/End Function.
    Petr
    Last edited by Petr Schreiber; 08-04-2013 at 09:18.
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

  3. #3
    thinBasic MVPs
    Join Date
    Oct 2012
    Location
    Germany
    Age
    54
    Posts
    1,525
    Rep Power
    170
    I got a few for the helpfile too:

    UDT_ElementByte needs a "see also" to Array Scan + vice versa -
    could be part of example in Array Scan (think we got enough examples in other thread)

    UDT_ElementOffset would make sense for a "see also" to thinBasic language > Data types and variables > Type and in any case vice versa,
    probably see also at Memory_Compare/Memory_Copy to UDT_ElementOffset ??? or which one is the right to use here ???
    and "see also" to Peek/Poke and vice versa, maybe small example using Peek or Poke for usage here too.

    Example:

    Type t_Type
        A as Long
        B as Byte
    End Type
    
    Dim X as t_Type
    Poke(Byte, Varptr(X) + UDT_ElementOffset(X.B) , 123)
    ' X.B will hold 123 now
    
    is this valid too:
    Poke(Byte, Varptr(X) + UDT_ElementOffset(t_Type.B) , 123) ???


    and when we are already here for finetuning:

    CVx (numeric Functions) -> "see also" MKx (string functions) and vice versa.

    UDT_ELEMENTSDATAJOIN: Description says:
    "Return the offset of an element inside an UDT (User Defined Type) variable" ??? That's why I was confused (see other thread)
    and in fact the both UDT_ElementByte & UDT_ElementOffset show same example - so where's the difference? - user might ask.

    And thank you very much again.
    I think there are missing some Forum-sections as beta-testing and support

  4. #4
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,777
    Rep Power
    10
    wow: I as really tired when I wrote such an help mess!
    Will be fixed in next update.
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

  5. #5
    thinBasic MVPs
    Join Date
    Oct 2012
    Location
    Germany
    Age
    54
    Posts
    1,525
    Rep Power
    170

    thinAir changes appearance

    I have some strange behaviour when I select File\New from thinAir-Menu. No bug nor error, but strange

    Check screenshots:
    Above you see appearance of thinAir (Window-Borders/Caption) as it looks when I start. Looks as all other windows on my system.

    Below see the changed appearance after I selected File\New. Seems to become another Window-Style and looks like some Tools-Dialog inside some other window thereafter

    Edit:
    Another thing I experienced when creating bundled exe -
    there must be something with them filenames of the .tBasicU-Files : creation of bundle mostly fails if an include-file-name starts with a tB-Keyword - then I have troubles:
    sometimes creation of bundle is successful as statusbar says, but .exe can not be started. Error-Messages about wrong header, invalid .exe or even unknown keyword f.e. "PrintL"

    Edit: to the Helpfile

    thinBasic Modules > UIAdv (Advanced User Interface module) > IMAGECTX Control >IMAGECTX_LoadImage
    Description:
    Set control background color

    ?

    Sample-Scripts: Example RMChart\RMCHartDemo : End-Button does not work
    Attached Images Attached Images
    Last edited by ReneMiner; 22-04-2013 at 16:17.
    I think there are missing some Forum-sections as beta-testing and support

Similar Threads

  1. thinBasic Beta 1.8.6.0
    By ErosOlmi in forum thinBasic Beta testing
    Replies: 31
    Last Post: 07-05-2011, 11:06
  2. thinBasic beta 1.8.5.0
    By ErosOlmi in forum thinBasic Beta testing
    Replies: 1
    Last Post: 06-07-2010, 05:43
  3. thinBasic Beta 1.8.2.x
    By ErosOlmi in forum thinBasic Beta testing
    Replies: 13
    Last Post: 21-06-2010, 10:10
  4. thinBasic beta 1.7.10.1
    By ErosOlmi in forum thinBasic Beta testing
    Replies: 11
    Last Post: 08-02-2010, 07:09
  5. thinBasic beta 1.7.8.0
    By ErosOlmi in forum thinBasic Beta testing
    Replies: 34
    Last Post: 28-06-2009, 16:16

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
  •