Results 1 to 3 of 3

Thread: please develop this properties

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    thinBasic MVPs
    Join Date
    Oct 2012
    Location
    Germany
    Age
    55
    Posts
    1,554
    Rep Power
    174

    please develop this properties

    as it says. i Aam ith our udt right now. First short clarification and do not skp the step if you are not satsfied with objects that are not able to appear in an array and are actualy no own kind of a typ but abused appearances of dynamic strings forced to swallow each other...

    This
    type foo
    x as byte
    Function _Create(L1 as Log, L2 As Long bt as Byte..) 
    ' wil noot fire up for an array
    End function
     end type
    
    Dim aaa() as foo
    
    is correct not to go into _create()

    because it does not create anything. if only defines aaa to be a dynamic array.
    were the parameters 2 long variables and a byte = 9 byte and we pass 45 bytes it rould knoe where to to put it (only to _create
    -not any other right now and if - it is what only udt -functions are capable of doig in type-functons. Not if unexpected the array member appears ( the function can not see its a group) but if 2 opening paretheses- mmediately - nothing inbetween those parendtheses but empty space
    and three is a comma encountered within the inner paranthesis - elminates the chamce that it were a calculation using the parentheses to override the otder
    you rermember variadic parameters -

    As this

    Dim aaa()
    creates nothing yet i is not to consider.


    Dim BBB(20) <
    watch it's not redim but a stastic sized array (defined and allocated in one go)
    and this will notfire zmr evento into create because of incorrect count of parameters that are passed

    Dim ccc(5) As foo((1,2,3,4,5),( 2,2,2,2,3),(9,8,7,6,5))

    it should accept the creation of 5 at once
    condition all parameters correct and complete in count. Arrays cam be static or dynamic but must be fixed in size for each element.

    But

    ReDim abc(10)
    is not possibe to lsunch _Create since thcreate happenned on Dim already where this array dpd not qualify becaue the reservation of a namde alone does not count as creation
    Om;yx in case thr array y"forces" the creation of variable space andtries to drop conzrnt into a sroragw
    dim A() as foo
    is noz goimhg domrthig
    fsi, B() as Foo(((1,2,3).(2,3,4),(0,0,0))
    makes it 3, dynamic

    tthe function must loook ahaead but it ould count for th E Euall AMOUNT OF PASSED PARAMETERS and shoulyf redim ( its the _create -function of that type ehdIt could do such thing for its members
    And perhaps its not that complicated if is member of an arrax is except om DIMnot necessary
    i dont know if it were easy to deteck if ftom the view of Me possible to detedtig data of me amd my array/s iblingd is a dpa (dynaimic pointer array} where
    [code]
    setat(Me, GetAt(me)+Sizeof(Me))
    ,mmakes ME to be the next in for each from to

    thimkl a bit bout it. Sorry my eyesight is getting incredbly worse
    Last edited by ReneMiner; 29-10-2021 at 18:56.
    I think there are missing some Forum-sections as beta-testing and support

Similar Threads

  1. drag'n'drop question plus properties
    By Lionheart008 in forum TBGL General
    Replies: 11
    Last Post: 03-11-2013, 17:59
  2. Properties
    By efgee in forum O2h Compiler
    Replies: 7
    Last Post: 03-09-2010, 23:09
  3. Need to develop in Linux, need virtual stuff
    By Michael Hartlef in forum Shout Box Area
    Replies: 6
    Last Post: 12-03-2008, 00:47
  4. Celtx, a tool to develop our storyline
    By Michael Hartlef in forum Game story and Character Development
    Replies: 4
    Last Post: 14-03-2007, 22:13

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
  •