need to generate 3 fields with in a set location

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

d.m.holdawayGA2553
Posts: 81
Joined: Mon Jan 09, 2012 4:48 pm

Re: need to generate 3 fields with in a set location

Post by d.m.holdawayGA2553 » Thu Mar 15, 2012 11:35 pm

Code: Select all

global sDefaultvalue
on scrollbardrag
     put "30" into sDefaultvalue
    set startvalue of scrollbar "name of scrollbar" to sDefaultvalue
    ## set startvalue to sDefaultvalue
     put the thumbpos of me into  sUsertimer
end scrollbardrag
??? Does this work for you?
kind of, is there a way i can set it to whole numbers? i have tried within the properties but it does not seem to stay.

Klaus
Posts: 14196
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: need to generate 3 fields with in a set location

Post by Klaus » Thu Mar 15, 2012 11:38 pm

What do you mean with "set to whole numbers"?

d.m.holdawayGA2553
Posts: 81
Joined: Mon Jan 09, 2012 4:48 pm

Re: need to generate 3 fields with in a set location

Post by d.m.holdawayGA2553 » Fri Mar 16, 2012 5:28 pm

it outputs a decimal point

for example i have a countdown timer which is set via one of the scrollbars

when i set the timer to say 60, the field which it is outputting to will start at 60 then the next number would be 59.999

does that make sense ?

Post Reply