Progress Bar in a 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: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
sc12
Posts: 10
Joined: Mon Jan 11, 2021 2:04 am

Progress Bar in a Datagrid

Post by sc12 » Tue Jan 26, 2021 2:28 am

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!!

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10305
Joined: Wed May 06, 2009 2:28 pm

Re: Progress Bar in a Datagrid

Post by dunbarx » Tue Jan 26, 2021 1:46 pm

Hi.

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

Craig

SparkOut
Posts: 2943
Joined: Sun Sep 23, 2007 4:58 pm

Re: Progress Bar in a Datagrid

Post by SparkOut » Tue Jan 26, 2021 2:58 pm

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"]

Post Reply