I want the participant to make their rating on the first scale and then, once the second scale comes up (after the participant is given additional information), I want the scale to appear with the last rating as the starting point.
e.g..
If this is scale 1 as it appears
------------------------------X---------------------------------
and the participant moves the X using the keypad to here on the first rating:
----X-----------------------------------------------------------
I want for when the next scale comes, the code not to start with the X in the centre, but instead to start at the point where the participant last rated (in the first scale)
I am trying to measure the difference in the ratings (of happiness) before and after a certain event.
I'm not sure where you're getting lost. It sounds very simple. You create a global variable (or a static local variable) and place the value in that variable. Then, when you display the second scale, you take the value from the global variable and use it.
Private SavedHappiness as integer = 0
'(9)Rate result
'
If Me.bRateObtainedOutcome Then
Me.iHappinessStartTime = timeGetTime
Me.fHappinessRating = doRating(Me.m_OutcomeRating)
SavedHappiness = me.fHappinessRating ' save the happiness rating for later use.
Me.iHappinessRatingTime = timeGetTime
'(11) Rate regret
'
If Me.bRateAfterBothOutcomes Then
Me.iRegretStartTime = timeGetTime
' I'm not sure what all this means. The final rating could be set to the saved happiness if this is what is called for the user to perform the rating.
Me.m_FinalRating = SavedHappiness
Me.fRegretRating = doRating(Me.m_FinalRating)
Me.iRegretRatingTime = timeGetTime
End If