OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

The "Resume" statment is absent in LibreOffice hel

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
v_mil
General User
General User


Joined: 24 Oct 2011
Posts: 13
Location: Kyiv

PostPosted: Wed Aug 08, 2012 11:21 am    Post subject: The "Resume" statment is absent in LibreOffice hel Reply with quote

Dear members.
When I read LibreOffice help documentation I can not find anything about the Resume statement to return from error handlers (I find only one topic - "Resume Next parameter"). But it normally works. Also the error code 20 said: "Resume without error"
Is it undocumented or obsolete feature or this help is incomplete? So, is it safe to use this statement for compatibility with future versions of OOO/LO?
With best regards.
Viktor.
_________________
Used LibreOffice 4.0.4.2 on Ubuntu 13.04 x64
Back to top
View user's profile Send private message
RPG
Super User
Super User


Joined: 24 Apr 2008
Posts: 2697
Location: Apeldoorn, Netherland

PostPosted: Wed Aug 08, 2012 2:01 pm    Post subject: Reply with quote

Hello

Code:
Sub example
Print "Hello"
on error goto wrongresume
resume next ' I use here resume next without a reason and it give an error
print "Hello2"

exit sub

wrongresume:
print "This error" ,Err ' Print the error code
resume next 'I use it here good there was an error
end sub


I think when you need real often resume next you do something wrong.

I think you can use it save.

The BASIC pdf is on some points better then the help file but is not so complete as the help file. But the BASIC pdf give a good introduction about the API.

Romke
_________________
OOo 3.4.5 on openSUSE 12.1
Use this forum : http://user.services.openoffice.org/en/forum
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group