I found this code on the net;
What is the use of the "$"? The author used this twice;
All I can think of is the single charactor matching wildcard. What am I missing here?
Bernie
VB.NET:
Private Function fGetCaption(Hwnd As Long) As String
Dim strBuffer As String
Dim intCount As Integer
strBuffer = String$(mconMAXLEN - 1, 0)
intCount = apiGetWindowText(Hwnd, strBuffer, mconMAXLEN)
If intCount > 0 Then
fGetCaption = Left$(strBuffer, intCount)
End If
End Function
What is the use of the "$"? The author used this twice;
String$(mconMAXLEN - 1, 0)
Left$(strBuffer, intCount)
All I can think of is the single charactor matching wildcard. What am I missing here?
Bernie