help with small arrows and datagrid

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller

Post Reply
gurusonwheels
Posts: 31
Joined: Sat Apr 01, 2017 5:15 pm

help with small arrows and datagrid

Post by gurusonwheels » Sat Apr 08, 2017 1:42 am

anyone have any idea why this does not make the value
in my datagrid column go up and down using the small arrows (aka scroll bar )

///////// INCREASE AND DECREASE BOXES QUANITYS ////////
on scrollbarLineInc

put the dgHilitedLines of group "DataGrid" into myline
put the dgDataOfLine[myLine] of group "DataGrid" into myArray
put myArray["BOXES"] into myAmount
subtract 1 from myAmount -- SUBTRACT

dispatch "SetDataOfIndex" to group "DataGrid" with the dgHilitedIndex of group "DataGrid", "BOXES", myAmount

end scrollbarLineInc

on scrollbarLineDec

put the dgHilitedLines of group "DataGrid" into myline
put the dgDataOfLine[myLine] of group "DataGrid" into myArray
put myArray["BOXES"] into myAmount
add 1 to myAmount -- ADD

dispatch "SetDataOfIndex" to group "DataGrid" with the dgHilitedIndex of group "DataGrid", "BOXES", myAmount

end scrollbarLineDec

/////////////////////////////////////////////////////////////

i can put a message box in the script and see that myAmount is going up and down
however the datagrid remains empty and never gets changed .


my datagrid is setup like this
SKU / NAME / BOXES / LOOSE
THANKS

Klaus
Posts: 11313
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: help with small arrows and datagrid

Post by Klaus » Sat Apr 08, 2017 12:03 pm

Hi Brian,

check you mail account, your scripts are OK, and after my little clean-up they work correctly in your stack! :D


Best

Klaus

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”