PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WINDEV Mobile 2024
→
ControlCurrent and ControlClone behaviours in IOS
ControlCurrent and ControlClone behaviours in IOS
Started by Mike Stewart, Jun., 30 2016 1:04 PM - No answer
Connect yourself…
Mike Stewart
#1
Posted on June, 30 2016 - 1:04 PM
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
Report
1
0
→ Go back to WINDEV Mobile 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (earlier versions)
Français
English
Español
Portuguesa
Close this window
Search type
Only topics
All the messages
Search period
Any time
Past hour
Past 24 hours
Past week
Past month
Past year
Cancel
Preview of your message
Adding an image
Import an image from a URL
Send an image from a file of your disk
Drop a file or click "Browse..."
or
Cancel
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Text