Chip, I believe you can use the Type function on the zero array. Given ARRAY LONGINT($aArray;0;0) you could call:
Type($array{0}) and it will return Array longint. On Thu, Jun 1, 2017 at 3:14 PM, Chip Scheide via 4D_Tech < 4d_tech@lists.4d.com> wrote: > I need to determine the type of a 2D array, which maybe empty (i.e. > size 0 x 0), which is at the end of a pointer.... > In the method where the 2D array is declared Type(My_Array{0}) returns > 18 (Array text) > BUT when the 2D array is passed via pointer (to a component) > Type($ptr->{0}) returns undefined in an interpreted database. > > Any ideas?? > Example (note all typed in email): > Array text(My_Array;0;0) > > $type:=Type(My_Array{0}) //$Type = 18 -- Array text > My_method(->My_array) > > //My_Method > c_pointer($1;$Array) > c_longint($Type) > > $Array:=$1 > $Type:=Type($Array->) //$Type = 13 -- Array 2D > > if ($Type= 13) > $Type:=Type($Array->{0}) //$Type = 5 (interpreted) -- Is Undefined > // WTF! ! ! ! > end if > > > Thanks > Chip > > --------------- > Gas is for washing parts > Alcohol is for drinkin' > Nitromethane is for racing > ********************************************************************** > 4D Internet Users Group (4D iNUG) > FAQ: http://lists.4d.com/faqnug.html > Archive: http://lists.4d.com/archives.html > Options: http://lists.4d.com/mailman/options/4d_tech > Unsub: mailto:4d_tech-unsubscr...@lists.4d.com > ********************************************************************** -- Kirk Brooks San Francisco, CA ======================= *The only thing necessary for the triumph of evil is for good men to do nothing.* *- Edmund Burke* ********************************************************************** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **********************************************************************