F
F
foonfyrick2022-01-05 13:18:50
1C
foonfyrick, 2022-01-05 13:18:50

Don't understand code execution without iteration?

I don’t press F5, I just select it with the mouse and look at the value, I was looking for an error for several hours, how can a check for equality be a mistake in general ... Of course, it happens to me when I look at an obvious thing and don’t understand, but right now I really don’t understand. ..
61d56f4367c32638166900.png
61d56f4918485977949660.png
61d56f50137a3618372768.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Mikhail E, 2022-01-05
@foonfyrick

foonfyrick ,
What's the question then?
Data Sampling - works similarly to all other PLs.
The fact that when the "Next ()" function is executed, it clicks to the next record and whether it was possible to go to the next record or not (True / False) - Written in SP ... (RTFM)
The code is quite adequate ... "Check something then with a query in the tab part... if you don't find it, add it by code...
If you find it, don't add it."

S
Sergey Vodakov, 2022-01-05
@WaterSmith

Every time you check MSelect2.Next() in the debugger, it gets the next entry.
Accordingly:
1. MSelect2.Next() = True //the first record is selected
2. "MSelect2.Next() <> True" = True //here already MSelect2.Next() = False, i.e. there is no second record in the selection
3. MSelect2.Next() = False //there is still no second record in the selection

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question