PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

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
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
sThisButton is string = ControlCurrent()
sThisButton = Replace(sThisButton,"BTN_","")
sThisStudent is string
i is int

SWITCH gsMode
CASE "assign"
IF gnSeatcount<ArrayCount(garrWholeGroup) THEN
sThisStudent=gsBotPic
IF {"BTN_"+sThisButton}..Caption<>"" THEN
i=1
//remove current occupant
WHILE i<=ArrayCount(garrWholeGroup)
IF garrWholeGroup[i,2]=sThisButton THEN
garrWholeGroup[i,2]=""

//this is building the grid

WHILE i<= Dimension(arrLayout)
// StringBuild(
IF arrLayout[nICol,nIRow] ="Y" THEN
sLabel = "BTN_" + nICol + "a" + nIRow
ControlClone(BTN_blank,sLabel,((nICol-1)*nIwidth)+80,((nIRow-1)*nIheight)+30)
{sLabel}..Visible=True
{sLabel}..Width = nIwidth
{sLabel}..Height = nIheight
END