Thanks Thanks:  0
Likes Likes:  0
Results 1 to 1 of 1

Thread: What the "&amp" is this??

  1. #1
    Board Regular Dr. Demento's Avatar
    Join Date
    Nov 2010
    Skipping stones off Charon's Ferry
    Post Thanks / Like
    0 Post(s)
    0 Thread(s)

    Default What the "&amp" is this??

    I'm looking to use a function by Jon Peltier on DDoE, but I get the dreaded red text on the highlighted line below:
    Private Declare Function lstrlenW Lib “kernel32″ _
         (ByVal lpString As Long) As Long
    Private Declare Function SHGetFolderPath Lib “shfolder.dll” _
         Alias “SHGetFolderPathA” _
         (ByVal hwndOwner As Long, _
         ByVal nFolder As Long, _
         ByVal hToken As Long, _
         ByVal dwReserved As Long, _
         ByVal lpszPath As String) As Long
    Function MyDocumentsDir()
         Dim sBuffer As String
         sBuffer = Space$(260)
         If SHGetFolderPath(&H0, &H5, -1, &H0, sBuffer) = 0 Then
             MyDocumentsDir = Left$(sBuffer, lstrlenW(StrPtr(sBuffer)))
         End If
    End Function
    I saw that &amp is used in HTML; is that what happened here - HTML encoding "corrupted" Jon's entry or am I doing something else wrong.

    It's too early!!

    Thanks, y'all.

    Follow-up: Never mind; Peter Thornton answered it in the comments section "(ignore any “amp;” that might creep in before the “H”)"
    Last edited by Dr. Demento; Mar 17th, 2016 at 09:34 AM.

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts