M
M
mrgrigo2018-08-17 10:11:59
1C
mrgrigo, 2018-08-17 10:11:59

How to quickly initialize an array in 1C?

Hello toast people!
Came to 1C from C++, C# and other "adult" languages. Many chips are missing. Therefore, I’ll shove a few questions, don’t throw painfully slippers.
1. How to quickly initialize an array in 1C?
For example, something like a PHP code: 2. How are things with reflection in 1C? Those. Are there analogues of C++?
$myArray = ['item1','item2','item3'];

void main(int argc, char **argv){ // интересуют аналоги char **argv (неограниченное кол-во аргументов с неявно заданными именами)
    // some code here
}

This is severely lacking.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Konstantin Nagibovich, 2018-08-17
@mrgrigo

For example, something like PHP code

There is no such happiness.
What exactly are you interested in about reflection?

K
Konstantin, 2018-08-17
@fosihas

p.1
CreatedList = New ValueList;
CreatedList.Add(CurrentEmployee, CurrentEmployee.Name, , Photo)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question