以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  请教个低级的单引号双引号的应用问题,折腾了好长时间也没弄出来,特向高手请教,谢谢!  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=34766)

--  作者:ztmdnzc
--  发布时间:2013/6/15 5:45:00
--  请教个低级的单引号双引号的应用问题,折腾了好长时间也没弄出来,特向高手请教,谢谢!

Dim dlg As New FolderBrowserDialog
If dlg.ShowDialog = DialogResult.Ok Then
    For Each file As String In FileSys.GetFiles(dlg.SelectedPath)
    1:MessageBox.Show(file)

    2:MessageBox.Show("\'" & file & "\'")
    3:MessageBox.Show(""" & file & """)

    next

endif

 

1得到的结果是D:\\PIC\\1.JPG

1得到的结果是\'D:\\PIC\\1.JPG\'

3得到的结果是" & file & "

 

我想得到"D:\\PIC\\1.JPG"这个结果,不知如何设置?


[此贴子已经被作者于2013-6-15 14:43:50编辑过]

--  作者:gsnake
--  发布时间:2013/6/15 7:02:00
--  
Dim dlg As New FolderBrowserDialog
If dlg.ShowDialog = DialogResult.Ok Then
    For Each file As String In FileSys.GetFiles(dlg.SelectedPath)
    1:MessageBox.Show(file)
    2:MessageBox.Show("\'" & file & "\'")
    3:MessageBox.Show("""" & file & """")

    Next
End If

--  作者:泡泡
--  发布时间:2013/6/15 7:52:00
--  
呵呵  要四个双引号才行哟
--  作者:ztmdnzc
--  发布时间:2013/6/15 14:45:00
--  

谢谢大家!