GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEV
,
WEBDEV
e
WINDEV Mobile
Inicio
|
Mensagens recentes
|
Conecte-se...
|
Disconnect
|
Português
Inicio
→
WINDEV 2024
→
java code to WX
java code to WX
Iniciado por jackP, abr., 09 2021 8:21 PM - 4 respostas
Conecte-se…
jackP
#1
Publicado em abril, 09 2021 - 8:21 PM
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?
Denunciar
0
0
CCordes
#2
Membro registado
68 mensagems
Publicado em abril, 09 2021 - 9:29 PM
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...
Denunciar
0
0
CCordes
#3
Membro registado
68 mensagems
Publicado em abril, 09 2021 - 9:34 PM
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...
Denunciar
0
0
jackP
#4
Publicado em abril, 15 2021 - 2:29 PM
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.
Denunciar
0
0
Snehal
#5
Publicado em junho, 08 2021 - 2:21 PM
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
Denunciar
0
0
→ Voltar para WINDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (versões anteriores)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Tipo de Pesquisa
Apenas tópicos
Todas as mensagens
Período de pesquisa
Qualquer momento
Última hora
Últimas 24 horas
Semana passada
Mês passado
Ano passado
Cancelar
Pré-visualização da sua mensagem
Adicionar imagem
Importar uma imagem de uma URL
Enviar uma imagem a partir do seu disco
Deixe um ficheiro ou clique em "Procurar ..."
ou
Cancelar
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Texto