Hi all,
I'm trying to learn Intersystems Iris. And I have a question.
How can I use left arrow key with if function. Also if it is possible, teach me that how can I make backspace to edit data?
P.S Sorry for bad English.
w $char(27)_"[2J"_$char(27)_"[H"
s var="12345abcde"
s curPos=$length(var)+1
w $char(27)_"[3;1H"_"First var= "_var
for {
read *key
#; Left Arrow Key
if key="?" {
}
#; Right Arrow Key
elseif key="?" {
}
#; Backspace
elseif key=8 {
}
elseif key=9 {
quit
}
}
w !,"Last var= ",var
Kind Regards,
Ikh
Dev Community resources
New
Events
10-11 Apr
13 Apr - 17 May
13 Apr - 10 May
27-30 Apr
Trending posts
Deltanji webinar: source control designed for change, built for you.
by Laurel James (GJS)
Key Questions of the 1st Quarter of 2026
by Anastasia Dyubaylo
Getting started with OAuth in your Web Apps
by Ariel Glikman
Show more (2)
Trending apps
PivotToJupyter
by Peter Steiwer
26
IRIS_and_MLflow-Continuous-Training-Pipeline
by Jorge Ivan Jaramillo Herrera
swagger-converter-cli
by Lorenzo Scalese
467
Featured app
FHIR-Patient-Viewer
by Fan Ji
Community in numbers
Members
26.5K
Posts
25.9K
Comments
60.3K
Views
13.6M
Likes
37.7K







