Copy a string to another variable using lstrcpy API
Copy a string to another variable using lstrcpy API
Rate Copy a string to another variable using lstrcpy API
(2(2 Vote))
' Copy the source string to the target string
Dim source As String, target As String ' the two strings
Dim retval As Long ' return value
source = "Mission Impossible" ' the source string to copy
target = Space(Len(source))
retval = lstrcpy(target, source) ' set target to equal source
MsgBox "Source string = " & source
MsgBox "Target string = " & target
End
End Sub
Copy a string to another variable using lstrcpy API Comments
No comments yet — be the first to post one!
Post a Comment