sysDateFormat = text of combobox "dbox" of this page
sysSuspend = false
sysErrorNumber = 0
d = text of field "dfield" of this page
if sysErrorNumber <> 0
s = "Your date entry must be in the" \
&& sysDateFormat && "format."
s = "Your entry is in the correct format."
end if
request s
sysSuspend = true
forward
END keyDown
Script of Enter field:
<BookPath>
:HDMEDIAPATH
System
Arial
Arial
button
oldObject
Script of Button:
NOTIFYBEFORE
4STRING oldObject
thisObject
= objectFromPoint(
$ <>
"Script
Button:" & CRLF &
Script of Button:
TO HANDLE buttonClick
go to next page
END buttonClicklick
Result:
65n away for 30 secondst to -3.998562
previous
enterPage
NOTIFYBEFORE
previous
buttonClick
TO HANDLE buttonClick
Previous
buttonClick
TO HANDLE buttonClick
enterPage
buttonClick
TO HANDLE buttonClick
ZREAL a
a = 4.49
"f" \
local REAL a = 4.49
-", 8
buttonClick
TO HANDLE buttonClick
ZINT a
a = 4.49
"f" \
local INT a = 4.49
-#, 8
buttonClick
TO HANDLE buttonClick
ZWORD a
a = 4.49
"f" \
local WORD a = 4.49
-", 8
buttonClick
TO HANDLE buttonClick
ZINT a
a = -4.49
"f" \
local INT a = -4.49
-#, 8
buttonClick
TO HANDLE buttonClick
ZWORD a
a = -4.49
"f" \
local WORD a = -4.49
TO HANDLE buttonClick
ZINT a
a = 6
"f" \
local INT a = 60000 (Won't Compile)
CDBSE&File
&Open... Ctrl+O
&Save Ctrl+S
Save &As...
saveas
&Import...
import
&Export...
export
Print Set&up...
printsetup
&Print Pages... Ctrl+P
printpages
Prin&t Report...
printreport
Send &Mail...
sendmail
&Run...
E&xit Alt+F4
&Edit
&Undo Ctrl+Z
Cu&t Ctrl+X
&Copy Ctrl+C
&Paste Ctrl+V
paste
C&lear Del
clear
Select &All Shift+F9
selectall
Select Pa&ge Shift+F12
selectpage
&Size to Page F11
sizetopage
F&ind... F5
Re&place...
replace
Aut&hor F3
author
&Text
&Character... F6
character
&Paragraph... F7
paragraph
&Regular Ctrl+Space
regular
&Bold Ctrl+B
&Italic Ctrl+I
italic
&Underline Ctrl+U
underline
Stri&keout Ctrl+K
strikeout
Superscrip&t/Subscript
superscriptSubscript
&Normal Script
normalscript
Su&bscript Ctrl+L
subscript
Su&perscript Ctrl+Shift+L
superscript
&Show Hotwords F9
showhotwords
&Page
&Next Alt+Right
&Previous Alt+Left
previous
&First Alt+Up
first
&Last Alt+Down
&Back Shift+F2
&History... Ctrl+F2
history
N&ew Page Ctrl+N
newpage
&Help
&Contents F1
contents
Status &Bar F12
statusbar
splunge
buttonClick
TO HANDLE buttonClick
"splunge"
character 2 of "splunge"
splunge
buttonClick
TO HANDLE buttonClick
"splunge" \
characters 3 to 6 of "splunge"
splunge
buttonClick
TO HANDLE buttonClick
"splunge" \
chars 3 to 6 of "splunge"
splunge
buttonClick
TO HANDLE buttonClick
ZSTRING theString
= "splunge"
chars 2 to 4 of theString
splunge
buttonClick
TO HANDLE buttonClick
"splunge" \
sixth char of "splunge"
Paris in the splunge
spring
buttonClick
TO HANDLE buttonClick
ZSTRING x
x = "Paris
the splunge"
x = "spring"
"Paris in the splunge"
previous
enterPage
NOTIFYBEFORE
previous
buttonClick
TO HANDLE buttonClick
Previous
buttonClick
TO HANDLE buttonClick
enterPage
cabbage,squid,tuna,snowflake
Which of these has a backbone?
Select From List
enterPage
Correct!
Try Again
buttonClick
TO HANDLE
ZSTACK vs
ZSTRING vt
ZLONG i
"f" = NULL
"f2" = "Select From List"
--This list would typically originate somewhere
%the result
user input
a calculation
vs = "cabbage,squid,tuna,snowflake"
"f" = \
"Which
these has a backbone?" & CRLF &
B(I + 2)
"f" =
B(i + 2)
"f" =
buttonClick
"f2" = "Correct!"
"f2" = "Try Again"
Which of these has a backbone?
cabbage
squid
snowflake
Select From List
buttonClick
TO HANDLE buttonClick
Start Over
-", 7
Thou shalt not count to
Result:
buttonClick
TO HANDLE buttonClick
ZSTRING t
"f" \
/= "Result:"
--Space
4the closing
t = "Thou shalt
xcount
x = 4
Hand Grenade Instruction
Result:
Neither shall thou count to
buttonClick
TO HANDLE buttonClick
ZREAL
ZSTRING t
"f" \
/= "Result:"
--Space
4the closing
t = "Neither shall thou count
x = -3.998562
An Even Better Instruction
.&, 7
Run away for xxxx seconds
buttonClick
TO HANDLE buttonClick
ZSTRING t
t = "Run away
xxxx
t = 30
en To Run Away
The Great Event In A Word
The Great Event In Two Characters
When To Run Away
The event happened 35 years ago
buttonClick
TO HANDLE buttonClick
"The event happened 35 years ago" \
+ 30 \
The event happened 35 years ago
buttonClick
TO HANDLE buttonClick
"The event happened 35 years ago" \
+ 30 \
previous
enterPage
NOTIFYBEFORE
previous
buttonClick
TO HANDLE buttonClick
Previous
buttonClick
TO HANDLE buttonClick
enterPage
theText
buttonClick
TO HANDLE buttonClick
Zx[ ][ ]
ZLONG a,i,j,y,z
a = 1
f1 = NULL
theText =
fill x
g] order
dimensions(x)
"f1" = x[i][j]
field(f1)
field(f2)
field(f3)
test.
field(f4)
[textline][word]
This is a test
of the
text parser. Each
word is parsed.
parser.
parsed.
theText
buttonClick
TO HANDLE buttonClick
Zx[ ][ ]
ZLONG a,i,j,y,z
a = 1
"f1" = NULL
theText =
fill x
R] order
dimensions(x)
"f1" = x[i][j]
field(f1)
field(f2)
field(f3)
test.
field(f4)
[word][char]
button
previous
buttonUp
NOTIFYBEFORE
TO HANDLE buttonClick
local x[ ][ ]
local LONG a,i,j,y,z
a = 1
text of field f1 = NULL
theText = text of field "f2"
fill x with theText in [textline][word] order
y = item 1 of dimensions(x)
z = item 2 of dimensions(x)
step i from 1 to y
step j from 1 to z
textline a of text of \
field "f1" = x[i][j]
increment a
end step
end step
END buttonClick
buttonUp
Enter Textlines Here:
previous
enterPage
NOTIFYAFTER
previous
buttonClick
TO HANDLE buttonClick
Previous
buttonClick
TO HANDLE buttonClick
enterPage
This is text in a field. As long as wordwrap is used, these are not textlines, since there is no CRLF at the end of each line. The whole paragraph is a textline.
These are textlines.
The return key was pressed.
Use the textline operator to get these.
This,is,a,list,in,a,field.eld is containe
A single-select list goes here..
A single-select list goes here.
These are the drop-down items.
They are textlines.
word 2 of text of field "f" = "is"
char 2 of word 3 of text of field "f = "e"
--The paragraph breaks increment the
--textline count.
textline 3 of text of field "f" = "These are textlines."
word 1 of textline 3 of text of field "f" = "These"
--lists are more efficient when in variables,
--but can be used from fields:
item 7 of textline 7 of text of field "f" = "field"