I did not mean to miss your point, but the following does not work when called
from within the component either. The code I uploaded has it outside the print
job. All variations have worked when used in the matrix structure.
OPEN PRINTING JOB
FORM LOAD("Form1")
ARRAY LONGINT(aA;0)
ARRAY TEXT(aB;0)
For ($i;1;10)
APPEND TO ARRAY(aA;$i)
APPEND TO ARRAY(aB;"Text"+String($i))
End for
v1:="Test String"
$all:=Print object(*;"ListBox")
$all:=Print object(*;"v1")
CLOSE PRINTING JOB
Keith - CDI
> On Aug 14, 2017, at 11:43 AM, Keisuke Miyako via 4D_Tech
> <[email protected]> wrote:
>
> I am not sure I understand your code;
>
> are you not supposed to populate the arrays AFTER you call FORM LOAD (unless
> the listbox already exists in the current form) ?
>
>> 2017/08/14 23:29、Keith Culotta via 4D_Tech <[email protected]> のメール:
>>
>> I tried with the name as well. It works that way too, but not when run as a
>> component.
>>
>> SET PRINT PREVIEW(True)
>> If (OK=1)
>>
>> ARRAY LONGINT(aA;0)
>> ARRAY TEXT(aB;0)
>> For ($i;1;10)
>> APPEND TO ARRAY(aA;$i)
>> APPEND TO ARRAY(aB;"Text"+String($i))
>> End for
>>
>> OPEN PRINTING JOB
>> FORM LOAD("Form1")
>> $all:=Print object(*;"ListBox")
>> CLOSE PRINTING JOB
>>
>> End if
>
>
>
>
> **********************************************************************
> 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:[email protected]
> **********************************************************************
**********************************************************************
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:[email protected]
**********************************************************************