Different Macro..

Different Macro..

Hi Zenon Support Team,
I am using VBA to scale value. But I cant use value of variable on different variable,which is scaled.
Ex: I created 2 internal variable "a" and "b". I created 2 macro "AdjustHardwareValue_a" and "AdjustHardwareValue_b". how can i use the value of "a" on value of "b"
Thank you in advance...
Hace a nice day
Public Function AdjustHardwareValue_b(obVar As Variable, vValue As Variant) As Double
AdjustHardwareValue_b = AdjustHardwareValue_a + 1
End Function
Public Function AdjustHardwareValue_a(obVar As Variable, vValue As Variant) As Double
Select Case vValue
Case 0 To 9999
AdjustHardwareValue_a = 0
Case 10000 To 19999
AdjustHardwareValue_a = 1
Case 20000 To 29999
AdjustHardwareValue_a = 2
Case Else
AdjustHardwareValue_a = 3
End Select
End Function


This is a migrated post! Originally posted on 22.07.2014 by user fatih.oz. Please be aware that information can be outdated.