what version - it might be that the issue is resolved in a newer version (>v13) then I am working in...
On Tue, 09 Jul 2019 18:30:33 +0100, Narinder Chandi via 4D_Tech wrote: > Chip, > > If I interpreted it correctly, I just created this code block based > on your spec. and variable naming: > > ARRAY LONGINT(array1;2) > array1{1}:=4 > array1{2}:=2 > > ARRAY LONGINT(array2;10) > C_LONGINT($i) > For ($i;1;10) > array2{$i}:=-$i > End for > > C_POINTER($Return_ptr) > C_POINTER($Column1) > $Return_ptr:=->array1 > $Column1:=->array2 > > C_LONGINT($Item) > $Item:=2 > > C_LONGINT($Result) > $Result:=$Column1->{$Return_ptr->{$Item}} > TRACE > > It doesn't generate an error for me and the debugger shows the > expected values when I execute it. Is my implementation "incorrect"? > ...or there is it down to some other issue?? > > Regards, > Narinder Chandi, > ToolBox Systems Ltd. > -- > > -----Original Message----- > From: Chip Scheide <4d_o...@pghrepository.org> > Date: Tuesday, 9 July 2019 at 17:57 > To: 4D Tech Mailing List <4d_tech@lists.4d.com> > Cc: Narinder Chandi <4dtechmailingl...@toolbox.uk.com> > Subject: Re: What is wrong with this statement? Corrected > > yes - an intermediate value works, I was more wondering why the > original statement will not work... > as it appears to be a perfectly valid statement. > > Replacing the array element reference with a simple math formula works. > i.e. > Array{2+8-6} > give the value of element 4 (assuming there is one) > > there should not be an issue with a valid formula inside set > brackets.... > ohh well... > > Chip > > > On Tue, 09 Jul 2019 17:32:10 +0100, Narinder Chandi via 4D_Tech wrote: > > Does it work if you do use an intermediate value? e.g. > > > > $value:= $Return_ptr-> {$Item} > > $Result:= $Column1 ->{$value} > > > > Regards, > > > > Narinder Chandi, > > ToolBox Systems Ltd. > > -- > > > > -----Original Message----- > > From: 4D_Tech <4d_tech-boun...@lists.4d.com> on behalf of 4D Tech > > Mailing List <4d_tech@lists.4d.com> > > Reply-To: 4D Tech Mailing List <4d_tech@lists.4d.com> > > Date: Tuesday, 9 July 2019 at 17:16 > > To: 4D Tech Mailing List <4d_tech@lists.4d.com> > > Cc: Chip Scheide <4d_o...@pghrepository.org> > > Subject: Re: What is wrong with this statement? Corrected > > > > My bad -- the correct line of code that is failing is: > > $Result:= $Column1 ->{ $Return_ptr-> {$Item} } > > > > On Tue, 9 Jul 2019 12:14:37 -0400, Chip Scheide via 4D_Tech wrote: > > > $Result:= $Column1{ $Return_ptr{$Item} } > > --------------- > > Gas is for washing parts > > Alcohol is for drinkin' > > Nitromethane is for racing > > > ********************************************************************** > > 4D Internet Users Group (4D iNUG) > > Archive: http://lists.4d.com/archives.html > > Options: https://lists.4d.com/mailman/options/4d_tech > > Unsub: mailto:4d_tech-unsubscr...@lists.4d.com > > > ********************************************************************** > > > > > > ********************************************************************** > > 4D Internet Users Group (4D iNUG) > > Archive: http://lists.4d.com/archives.html > > Options: https://lists.4d.com/mailman/options/4d_tech > > Unsub: mailto:4d_tech-unsubscr...@lists.4d.com > > ********************************************************************** > --------------- > Gas is for washing parts > Alcohol is for drinkin' > Nitromethane is for racing > > > ********************************************************************** > 4D Internet Users Group (4D iNUG) > Archive: http://lists.4d.com/archives.html > Options: https://lists.4d.com/mailman/options/4d_tech > Unsub: mailto:4d_tech-unsubscr...@lists.4d.com > ********************************************************************** --------------- Gas is for washing parts Alcohol is for drinkin' Nitromethane is for racing ********************************************************************** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **********************************************************************