LukeSky
Registered User.
- Local time
- Today, 07:36
- Joined
- Aug 4, 2016
- Messages
- 12
Hey, I am new here, my language native is not english, I apologize in advance for my mistakes in grammar.
I want emulate, in one macro, this VBA function/sub:
Private Sub Tip_KeyPress(KeyAscii As Integer)
KeyAscii = Asc(UCase(Chr(KeyAscii)))
End Sub
With below macro, I got uppcase text, but way is different, not is character by character, either full-string. Macro linking with event AfterUpdate of text control.
Action: SetValue
Element: [Screen].[ActiveControl]
Expression: StrConv([Screen].[ActiveControl];1)
With this macro, linked with event Change of text control:
Action: SetValue
Element: [Screen].[ActiveControl].[Text]
Expression: Ucase([Screen].[ActiveControl].[Text])
I get uppercase character by character but final string is reverse.
Any idea? Thanks.
I want emulate, in one macro, this VBA function/sub:
Private Sub Tip_KeyPress(KeyAscii As Integer)
KeyAscii = Asc(UCase(Chr(KeyAscii)))
End Sub
With below macro, I got uppcase text, but way is different, not is character by character, either full-string. Macro linking with event AfterUpdate of text control.
Action: SetValue
Element: [Screen].[ActiveControl]
Expression: StrConv([Screen].[ActiveControl];1)
With this macro, linked with event Change of text control:
Action: SetValue
Element: [Screen].[ActiveControl].[Text]
Expression: Ucase([Screen].[ActiveControl].[Text])
I get uppercase character by character but final string is reverse.
Any idea? Thanks.