Click here to Skip to main content
15,885,141 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I want to show where my Path is with 2 textboxes, but this is not working.


VB
MyPath = TextBox1.Text


           MyBasic.RetrieveFile(MyPath & TextBox2.Text)


Textbox1 is the folder and textbox2 the file

For example
VB
MyBasic.RetrieveFile(C:\Test & "\Shop.txt")
Posted
Updated 28-Mar-13 23:44pm
v2
Comments
OriginalGriff 29-Mar-13 4:55am    
And what is not working? How is it not working?
What is it doing that it shouldn't, or not doing that it should?
Remember that we can't see your screen, access your HDD, or read your mind.
(Even ignoring that your code fragments won't compile, there just isn't enough info there)
Use the "Improve question" widget to edit your question and provide better information.
Jonathan [Darka] 29-Mar-13 5:41am    
What do you mean you can't read his mind?
;)
OriginalGriff 29-Mar-13 5:57am    
I don't like to remove the tin-foil hat.
The voices start again, and we all remember what happened last time. Except me, it's all a blur. Just the blood, really. So much blood...who would have thought there would be so much...

What error are you getting?


By the way, your example should be:

VB
MyBasic.RetrieveFile("C:\Test" & "\Shop.txt")
 
Share this answer
 
v2
You Can Resolve your Problem To Follow Belowing Methodlogy..................

C#
 MyPath = TextBox1.Text

MyBasic.RetrieveFile(MyPath  & "\" &  TextBox2.Text) 
 
Share this answer
 
v2
I posted the question and i see what was wrong.



VB
i forgot this "\" in textbox 2
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900