FOROS PROFESIONALES
WINDEV
,
WEBDEV
y
WINDEV Mobile
Inicio
|
Mensajes recientes
|
Conéctese...
|
Desconectar
|
Español
Inicio
→
WINDEV 2024
→
java code to WX
java code to WX
Iniciado por jackP, 09,abr. 2021 20:21 - 4 respuestas
Conéctese…
jackP
#1
Publicado el 09,abril 2021 - 20:21
I'm working on a translation of a java code routine into my Windev app.
Can someone translate this java code into the equivalent WX code?
String[][] _5_minute_array = {{"7", "4", "1"}, {"8", "5", "2"}, {"9", "6", "3"}}
I believe it's supposed to mirror the standard telephone keyboard?
Informar
0
0
CCordes
#2
Miembro registrado
68 mensajes
Publicado el 09,abril 2021 - 21:29
arr5MinuteArray is array of 3 by 3 strings = [["7", "4", "1"], ["8", "5", "2"], ["9", "6", "3"]]
This would give you
arr5MinuteArray[1,1] = "7"
arr5MinuteArray[2,1] = "8"
arr5MinuteArray[3,1] = "9"
but in JS it would be 0 - 2
--
Sometimes waiting is the best way forward...
Informar
0
0
CCordes
#3
Miembro registrado
68 mensajes
Publicado el 09,abril 2021 - 21:34
I think the braces would cause an error is JS
See -
https://www.javascripttutorial.net/javascript-multidimensional-array/
--
Sometimes waiting is the best way forward...
Informar
0
0
jackP
#4
Publicado el 15,abril 2021 - 14:29
Thanks for the help...I guess I was confused with the "String[][]" and three sets of data. Stuck that this was a 2x3 array with 3 sets of data?
I assume that in java, the "[][]" just means more than a one-column array.
Informar
0
0
Snehal
#5
Publicado el 08,junio 2021 - 14:21
Thank you so much for sharing all this wonderful information !!!! It is so appreciated!! You have good humor in your blogs. So much helpful and easy to read!
https://www.sevenmentor.com/java-training-classes-in-pune.php
Informar
0
0
→ Volver a WINDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (versiones precedentes)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Búsqueda Tipo
Sólo temas
Todos los mensajes
Periodo Buscar
Cualquier fecha
Última hora
Última 24 horas
Última semana
Último mes
Último año
Cancelar
Vista previa del mensaje
Añadiendo una imagen
Importar una imagen desde una URL
Enviar una imagen desde un archivo de su disco
Arrastrar un archivo o click en "Examinar..."
o
Cancelar
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Texto