<t>Hi!<br/>
How do I create an empty .net array with count of elements out of a variable?<br/>
VO:<br/>
local aArray as array<br/>
iElements := 100<br/>
aArray := ArrayCreate( iElements )<br/>
<br/>
X#:<br/>
local aX as string[]<br/>
iElements := 100<br/>
aX := ???<br/>
<br/>
I am aware of<br/>
aX ...
Search found 54 matches
- Wed Sep 05, 2018 1:13 pm
- Forum: Product
- Topic: Creating an empty .net array: syntax?
- Replies: 3
- Views: 2415
- Wed Sep 05, 2018 8:56 am
- Forum: Product
- Topic: How to replace BEGIN SEQUENCE...BREAK...RECOVER for own errors?
- Replies: 4
- Views: 2606
How to replace BEGIN SEQUENCE...BREAK...RECOVER for own errors?
Ok, thanks, that's what I have missed.
- Wed Sep 05, 2018 6:27 am
- Forum: Product
- Topic: How to replace BEGIN SEQUENCE...BREAK...RECOVER for own errors?
- Replies: 4
- Views: 2606
How to replace BEGIN SEQUENCE...BREAK...RECOVER for own errors?
<t>Hi Jamal,<br/>
for me this looks like there is already an exception and it's thrown again...?<br/>
But my question is if I can create an exception myself if I detect an error e.g.<br/>
if x <> y<br/>
throw xxx<br/>
and what I have to take care of.<br/>
And if this makes sense.<br/>
BR Kurt</t>
for me this looks like there is already an exception and it's thrown again...?<br/>
But my question is if I can create an exception myself if I detect an error e.g.<br/>
if x <> y<br/>
throw xxx<br/>
and what I have to take care of.<br/>
And if this makes sense.<br/>
BR Kurt</t>
- Wed Sep 05, 2018 5:52 am
- Forum: Product
- Topic: How to replace BEGIN SEQUENCE...BREAK...RECOVER for own errors?
- Replies: 4
- Views: 2606
How to replace BEGIN SEQUENCE...BREAK...RECOVER for own errors?
<t>Hi!<br/>
In VO I used BREAK very often to 'jump to the end' if an error was detected from my own program, not only runtime errors.<br/>
I tried to use a switch which is set to false if an error occurs:<br/>
lok := true<br/>
if lOk<br/>
xxxx<br/>
if <some error><br/>
cMsg = "..."<br/>
lOk ...
In VO I used BREAK very often to 'jump to the end' if an error was detected from my own program, not only runtime errors.<br/>
I tried to use a switch which is set to false if an error occurs:<br/>
lok := true<br/>
if lOk<br/>
xxxx<br/>
if <some error><br/>
cMsg = "..."<br/>
lOk ...

