About $add re lists
hi Das.
do cvChartStylesList.$define(var1,var2)
Do cvChartStylesList.$add()
Adds variables from the current record buffer to your list in the SAME ORDER as they are defined. in this case Var1 and var2
you cannot use the entire file
however, you can specify different variables or constants or calculations or functions. if you dop not specify a variable, it will take the value from the CRB
eg
do cvChartStylesList.$define(var1,var2)
# adds var1=1 and var2=2 (in the list)
Do cvChartStylesList.$add(1,2)
# adds var1=list.xxx and var2=list.yyy
Do cvChartStylesList.$add(list.xxx,list.yyy)
# adds var1=upp(list.xxx) and var 2 becomes the current record buffer copy of var3
Do cvChartStylesList.$add(upp(list.xxx))
# adds var1=value of pick statment, and var 2 becomes the current record buffer copy of var3
Do cvChartStylesList.$add(pick(1=1,’Value if False’,’Value if true’)))
# adds var 1 as crb value of var1 and var2 = 6. you can use ,,,,, to let the $add take the CRB value rather that a specific value
Do cvChartStylesList.$add(,6)
hope that makes sense. Thats how we’ve used it in the past.
Doug Easterbrook
Arts Management Systems Ltd.
mailto:doug@artsman.com
www.artsman.com
Phone (403) 650-1978
> On January 27, 2021, at 11:00 AM, Das Goravani <goravanis@gmail.com> wrote:
>
>
> I have this line of code
>
> Do cvChartStylesList.$add()
>
>
> My question is this: It says in the online help to put the column values in the parenthesis but in this case there are too many fields to list.. it is a whole file, all columns, about 200..
>
> If you leave it blank does it add all the fields specified in the $define statement, which in this case is a whole file so I just put the file name in the define statement
>
> Should I put the file name in the $add statement too, in quotes.. does that work
>
> Or should I leave it blank?
> _____________________________________________________________
> Manage your list subscriptions at lists.omnis-dev.com
> Start a new message -> mailto:omnisdev-en@lists.omnis-dev.com
_____________________________________________________________
Manage your list subscriptions at lists.omnis-dev.com
Start a new message -> mailto:omnisdev-en@lists.omnis-dev.com