From b1aec63bf053b4a654e3531c32eabd6b0ab035f5 Mon Sep 17 00:00:00 2001 From: Olivier Hallot Date: Sat, 29 Dec 2018 15:39:14 -0200 Subject: tdf#114263 Help page for BASIC WaitUntil statement Change-Id: I6ef145556a813f65ea509b146eadbf744b6f1fae Reviewed-on: https://gerrit.libreoffice.org/65721 Tested-by: Jenkins Reviewed-by: Olivier Hallot --- AllLangHelp_sbasic.mk | 1 + help3xsl/online_transform.xsl | 56 +++++++++++++++++----------------- source/auxiliary/sbasic.tree | 1 + source/text/sbasic/shared/03130000.xhp | 1 + source/text/sbasic/shared/03130600.xhp | 13 ++++---- source/text/sbasic/shared/03130610.xhp | 51 +++++++++++++++++++++++++++++++ 6 files changed, 89 insertions(+), 34 deletions(-) create mode 100644 source/text/sbasic/shared/03130610.xhp diff --git a/AllLangHelp_sbasic.mk b/AllLangHelp_sbasic.mk index 11c686abe7..21f9589633 100644 --- a/AllLangHelp_sbasic.mk +++ b/AllLangHelp_sbasic.mk @@ -317,6 +317,7 @@ $(eval $(call gb_AllLangHelp_add_helpfiles,sbasic,\ helpcontent2/source/text/sbasic/shared/03130100 \ helpcontent2/source/text/sbasic/shared/03130500 \ helpcontent2/source/text/sbasic/shared/03130600 \ + helpcontent2/source/text/sbasic/shared/03130610 \ helpcontent2/source/text/sbasic/shared/03130700 \ helpcontent2/source/text/sbasic/shared/03130800 \ helpcontent2/source/text/sbasic/shared/03131000 \ diff --git a/help3xsl/online_transform.xsl b/help3xsl/online_transform.xsl index 5fa01a773b..2bd356a8c7 100644 --- a/help3xsl/online_transform.xsl +++ b/help3xsl/online_transform.xsl @@ -473,35 +473,35 @@ - - -
    - - - - -
-
- -
-
-
+ + +
    + + + + +
+
+ +
+
+
- - -
    - - - - -
-
- -
-
-
+ + +
    + + + + +
+
+ +
+
+
@@ -519,12 +519,12 @@ - + - + diff --git a/source/auxiliary/sbasic.tree b/source/auxiliary/sbasic.tree index 6e3fcd8421..a803d00b1f 100644 --- a/source/auxiliary/sbasic.tree +++ b/source/auxiliary/sbasic.tree @@ -281,6 +281,7 @@ UCase Function Val Function Wait Statement + WaitUntil Statement WeekDay Function WeekdayName Function [VBA] While...Wend Statement diff --git a/source/text/sbasic/shared/03130000.xhp b/source/text/sbasic/shared/03130000.xhp index 9be85339ed..5b458428b5 100644 --- a/source/text/sbasic/shared/03130000.xhp +++ b/source/text/sbasic/shared/03130000.xhp @@ -37,6 +37,7 @@ + diff --git a/source/text/sbasic/shared/03130600.xhp b/source/text/sbasic/shared/03130600.xhp index 9a78d75b20..849f00c864 100644 --- a/source/text/sbasic/shared/03130600.xhp +++ b/source/text/sbasic/shared/03130600.xhp @@ -35,16 +35,14 @@ Wait Statement Interrupts the program execution for the amount of time that you specify in milliseconds. -Syntax: - -Wait millisec - -Parameters: + +Wait millisec + millisec: Numeric expression that contains the amount of time (in milliseconds) to wait before the program is executed. -Example: + Sub ExampleWait Dim lTick As Long @@ -54,6 +52,9 @@ MsgBox "" & lTick & " Ticks" ,0,"The pause lasted" End Sub +
+ WaitUntil statement +
diff --git a/source/text/sbasic/shared/03130610.xhp b/source/text/sbasic/shared/03130610.xhp new file mode 100644 index 0000000000..1e68ce7aa5 --- /dev/null +++ b/source/text/sbasic/shared/03130610.xhp @@ -0,0 +1,51 @@ + + + + + + + + WaitUntil Statement + /text/sbasic/shared/03130610.xhp + + + +
+ + WaitUntil statement + +

WaitUntil Statement

+ Interrupts the program execution until the time specified. +
+ + WaitUntil Time + + + Time: A Date and Time expression that contains the date and time to wait before the program is executed. + + + + + + REM Wait until 6:00 PM then call MyMacro. + REM If after 6:00 PM, exit. + Sub ExampleWaitUntil + Dim vTimeschedule As Long + vTimeSchedule = Date() + TimeValue("18:00:00") + If vTimeSchedule < Now() Then Exit Sub + WaitUntil vTimeSchedule + Call MyMacro + End Sub + +
+ Wait statement +
+ +
-- cgit