我的路径是2个文本框 [英] My Path is 2 textboxes

查看:72
本文介绍了我的路径是2个文本框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想用2个文本框显示我的路径,但这不起作用。





 MyPath = TextBox1.Text 


MyBasic.RetrieveFile(MyPath& TextBox2.Text)





Textbox1是文件夹和textbox2文件



例如

 MyBasic.RetrieveFile(C:\测试&   \ Shop.txt

解决方案

你有什么错误?





顺便说一下,你的例子应该是:



 MyBasic.RetrieveFile( < span class =code-string> C:\ Test&   \ Shop。 txt


你可以解决你的问题跟随下面的方法逻辑................ ..



 MyPath = TextBox1.Text 

MyBasic.RetrieveFile(MyPath& \& TextBox2.Text)


我发布了问题,我看到了什么问题。







我忘了这个 文本框 2  


I want to show where my Path is with 2 textboxes, but this is not working.


MyPath = TextBox1.Text


           MyBasic.RetrieveFile(MyPath & TextBox2.Text)



Textbox1 is the folder and textbox2 the file

For example

MyBasic.RetrieveFile(C:\Test & "\Shop.txt")

解决方案

What error are you getting?


By the way, your example should be:

MyBasic.RetrieveFile("C:\Test" & "\Shop.txt")


You Can Resolve your Problem To Follow Belowing Methodlogy..................

 MyPath = TextBox1.Text

MyBasic.RetrieveFile(MyPath  & "\" &  TextBox2.Text) 


I posted the question and i see what was wrong.



i forgot this "\" in textbox 2


这篇关于我的路径是2个文本框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆