CHECK if the join of value are changed

User avatar
sal21
PlatinumLounger
Posts: 4334
Joined: 26 Apr 2010, 17:36

CHECK if the join of value are changed

Post by sal21 »

Dim STRINGA AS String
...
COLONNA = .MouseCol
RIGA = .MouseRow
STRINGA =RIGA &"-" & COLONNA
...

during mousemove event how to check if STRINGA change, from old value?

User avatar
StuartR
Administrator
Posts: 12577
Joined: 16 Jan 2010, 15:49
Location: London, Europe

Re: CHECK if the join of value are changed

Post by StuartR »

How about
Dim STRINGA as String
Static oldSSTRINGA as String
...
COLONNA = .MouseCol
RIGA = .MouseRow
STRINGA = RIGA& "-" & COLONNA
If STRINGA <>oldSTRINGA
Then
oldSTRINGA = STRINGA
' Do whatever else you need for when the value changes here
EndIF
StuartR