Page 1 of 1

Progress Bar in a Datagrid

Posted: Tue Jan 26, 2021 2:28 am
by sc12
Hi!

Have anyone tried inserting a progress bar into a datagrid before? In my behavior script of the datagrid, I have tried to set the thumbPosition of my progress scrollbar to the data in the pDataArray but unfortunately was unable to run it due to the error in the statement:

Code: Select all

set the thumbPosition of scrollbar "Progress Scrollbar" to pDataArray["progress bar"]
Can anyone let me know what is wrong with this?

Thank you!!

Re: Progress Bar in a Datagrid

Posted: Tue Jan 26, 2021 1:46 pm
by dunbarx
Hi.

What was the error? "No such object"? Perhaps the value of "pDataArray["progress bar"]" was not a number?

Craig

Re: Progress Bar in a Datagrid

Posted: Tue Jan 26, 2021 2:58 pm
by SparkOut
No way of telling without more details but I think you might first check the syntax for reference to the dg control and include "of me"

Code: Select all

set the thumbPosition of scrollbar "Progress Scrollbar" OF ME to pDataArray["progress bar"]