FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
Accueil
→
WINDEV Mobile 2024
→
ControlCurrent and ControlClone behaviours in IOS
ControlCurrent and ControlClone behaviours in IOS
Débuté par Mike Stewart, 30 juin 2016 13:04 - Aucune réponse
Connectez-vous…
Mike Stewart
#1
Posté le 30 juin 2016 - 13:04
I am using a grid of buttons to store information along with the array and I'm using the 'grid address' of the buttons to link the two. This all works in the test environment but not on the application in IOS. This is a fundamental building block of my application so this has me really worried. Any help in how I might be using these functions incorrectly would be massively appreciated.
// this is an example of how the grid is used
s
ThisButton is
string
=
ControlCurrent
(
)
s
ThisButton
=
Replace
(
s
ThisButton
,
"BTN_"
,
""
)
s
ThisStudent is
string
i is
int
SWITCH
gs
Mode
CASE
"assign"
IF
gn
Seatcount
<
ArrayCount
(
garr
WholeGroup
)
THEN
s
ThisStudent
=
gs
BotPic
IF
{
"BTN_"
+
s
ThisButton
}
..
Caption
<
>
""
THEN
i
=
1
//remove current occupant
WHILE
i
<
=
ArrayCount
(
garr
WholeGroup
)
IF
garr
WholeGroup
[i,
2
]
=
s
ThisButton
THEN
garr
WholeGroup
[i,
2
]
=
""
//this is building the grid
WHILE
i
<
=
Dimension
(
arr
Layout
)
//
StringBuild(
IF
arr
Layout
[
n
ICol
,
n
IRow
] =
"Y"
THEN
s
Label
=
"BTN_"
+
n
ICol
+
"a"
+
n
IRow
ControlClone
(
BTN_
blank
,
s
Label
,
(
(
n
ICol
-
1
)
*
n
Iwidth
)
+
80
,
(
(
n
IRow
-
1
)
*
n
Iheight
)
+
30
)
{
s
Label
}
..
Visible
=
True
{
s
Label
}
..
Width
=
n
Iwidth
{
s
Label
}
..
Height
=
n
Iheight
END
Signaler
1
0
→ Revenir à WINDEV Mobile 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (précédentes versions)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Type de recherche
Uniquement les sujets
Tous les messages
Période de recherche
Date indifférente
Moins d'une heure
Moins de 24 heures
Moins d'une semaine
Moins d'un mois
Moins d'un an
Annuler
Aperçu de votre message
Ajouter une image
Importer une image depuis une URL
Envoyer une image depuis un fichier de votre disque
Déposez ici un fichier ou cliquez sur "Parcourir..."
ou
Annuler
0%
WLangage
SQL
XML, HTML
JAVA, Javascript
Texte