Advertisement
C_Volume2 String Manipulation #77993

L/UCaseKeyPress

Use these functions in KeyPress events to format user entries as entry is typed. UCaseKeyPress() converts key pressed to uppercase while LCaseKeyPress() converts key pressed to lowercase.

AI

ملخص الذكاء الاصطناعي: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

كود المصدر
original-source
Public Function LCaseKeyPress(ByRef KeyAscii As Integer) As Integer
  ' Useful in the KeyPress event to convert entry to LCase()
  LCaseKeyPress = Asc(LCase(Chr(KeyAscii)))
End Function
Public Function UCaseKeyPress(ByRef KeyAscii As Integer) As Integer
  ' Useful in the KeyPress event to convert entry to UCase()
  UCaseKeyPress = Asc(UCase(Chr(KeyAscii)))
End Function
التعليقات الأصلية (3)
مسترجع من Wayback Machine