How does the seterr command works, I don't really understand the manual? Someone that have some short exampelcode?
Thanks, greetings Johan
seterr
Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt
-
johansamuelsson
- Posts: 165
- Joined: Thu Mar 03, 2011 10:07 pm
- Contact:
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13583
- Joined: Tue Sep 16, 2008 5:38 pm
Re: seterr
Its just a way of setting an error if the user of your program does something wrong, so that the program stops. It only really makes sense in add-ins.
Code: Select all
create u 100
%x = ""
!result = @uiedit(%x, "Type an integer")
!val = @val(%x)
scalar a = !val
if !val=NA or !val<>@round(!val) then
seterr "I told you to type in an integer"
endif
Who is online
Users browsing this forum: No registered users and 2 guests
