กระทู้เก่าบอร์ด อ.สุภาพ ไชยา
        
           438   1		  
          
					  
		    URL.หัวข้อ / 
		    URL
        
        ต้องการเก็บเฉพาะ ไฟล์ เท่านั้นครับ      
		
    
      ต้องการเก็บเฉพาะ ชื่อไฟล์ และ นามสกุล ของรูปภาพเท่านั้นได้ไหมครับ เพราะ 
จะนำชื่อไฟล์ไป Link ขึ้น Web นะครับ
C:\My Documents\image\11111111.jpg
    
    
  จะนำชื่อไฟล์ไป Link ขึ้น Web นะครับ
C:\My Documents\image\11111111.jpg
				1 Reply in this Topic. Dispaly 1  pages and you are on page number 1 
				
      Time: 0.0537s
    
      
		
โดยผมทำดังนี้ (ต้องการเฉพาะชื่อไฟล์และนามสกุลนะครับ)
------
Dim strPictFile As String
Dim strFileType As String, strFileTypeDesc As String
strFileType = "*.bmp;*.jpg;*.gif;*.tif;"
strFileTypeDesc = "Pict Files (*.bmp,*.jpg,*.gif,*.tif;)"
strPictFile = GetOpenFile(strFileType, strFileTypeDesc)
If strPictFile <> "NoFile" Then
Caption = strPictFile
Me.PicPath = strPictFile
End If
------