Page 1 of 1

help with small arrows and datagrid

Posted: Sat Apr 08, 2017 1:42 am
by gurusonwheels
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

Re: help with small arrows and datagrid

Posted: Sat Apr 08, 2017 12:03 pm
by Klaus
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