|
I tried to get it from memory... Oops!
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Guffa wrote: Standard question #2:
What error message do you get?
eh...sry the problem is that it did not displayed any error message, the program juz stop. By the way, regard the App.path & "\" * Path the "*" is i typo error,my script is reflected as App.Path & "\" & Path, thz for notifying me, the line of problem occurs at the "objFSO.CopyFile"
Once again,thanks for forking out ur time to help.
Claiborne
|
|
|
|
|
I assume that objFSO is a reference to a FileSystemObject object?
Do you have Norton Antivirus installed? If so, disable Script Blocking. That is known to just hang processes using FSO without an error message or anything.
---
b { font-weight: normal; }
|
|
|
|
|
Guffa wrote: Do you have Norton Antivirus installed? If so, disable Script Blocking. That is known to just hang processes using FSO without an error message or anything.
For this qns, i have nt yet find out will let u kw once i get the ans. thz
Guffa wrote: I assume that objFSO is a reference to a FileSystemObject object?
To wad i know,i was told that objFSO is a variable naming.
Claiborne
|
|
|
|
|
claiborne wrote: For this qns, i have nt yet find out will let u kw once i get the ans. thz
Wy r u wrtn lk dat? Knt u wrt n english? Plz? Pty plz?
claiborne wrote: To wad i know,i was told that objFSO is a variable naming.
Yes, of course it's a variable name. But what is the variable containing?
---
b { font-weight: normal; }
|
|
|
|
|
Guffa wrote: Do you have Norton Antivirus installed? If so, disable Script Blocking. That is known to just hang processes using FSO without an error message or anything.
I do not have any Norton Antivirus installed but i do have Symantec Antivirus installed, so will the same problem exists ??
Claiborne
|
|
|
|
|
Norton Antivius is also a Symantec product, so that is very possible. The products are probably very similar.
---
b { font-weight: normal; }
|
|
|
|
|
Dave Kreskowiak wrote: Standard question #2:
"What errors and on what lines of code do they occur??"
There is no error message, the program juz stop. By the way, regard the App.path & "\" * Path the "*" is i typo error,my script is reflected as App.Path & "\" & Path, thz for notifying me, the line of problem occurs at the "objFSO.CopyFile"
Once again,thanks for forking out ur time to help.
Claiborne
|
|
|
|
|
claiborne wrote: im totally new to vb5
I didn't know anyone still used version 5...
claiborne wrote: objFSO.CopyFile App.path & "\" * Path, strClientPath & path, True
So can kindly anyone help mi out as to why the copyfile cant work in win XP, or any possible reason that could have caused this. Is it because the code copyfile no longer exists or is my coding missing out of anything?
Your problem has nothing to do with XP. More likely, it's how your handling putting these file paths togther. But, without the exact error message, it's kind of difficult to know.
I can already see one problem: App.path & "\" * Path should be
App.Path & "\" & Path<code><br />
Which leads me to a more general problem. Are you checking to see if the source and destination paths exist first? Are you checking to see if you need to append the "\" character to the end of the path before appending the rest of your filepath? I'm will to be you're not...<br />
<br />
<br />
<font color="Blue">Dave Kreskowiak<br />
Microsoft MVP - Visual Basic</font>
|
|
|
|
|
:confusedDave Kreskowiak wrote: I can already see one problem: App.path & "\" * Path should be App.Path & "\" & Path
Which leads me to a more general problem. Are you checking to see if the source and destination paths exist first? Are you checking to see if you need to append the "\" character to the end of the path before appending the rest of your filepath? I'm will to be you're not...
There is no error message, the program juz stop. By the way, regard the App.path & "\" * Path the "*" is i typo error,my script is reflected as App.Path & "\" & Path, thz for notifying me, the line of problem occurs at the "objFSO.CopyFile"
Once again,thanks for forking out ur time to help.
By the way, i juz do some search and found out that the for the source destination normally we put
MySource = "c:\MyFolder\MyFile.txt" but App.Path can be use when need be, am i right to say that? And if App.Path can be used when need be, den can any1 tel mi wad are the situations or cases that App.Path is used instead to replace the normal
MySource = "c:\MyFolder\MyFile.txt"
Claiborne
-- modified at 2:43 Wednesday 19th April, 2006
|
|
|
|
|
claiborne wrote: den can any1 tel mi wad
First, stop with the SMS speak. You have an entire keyboard in front of you, use it. It makes it much easier to understand you.
App.Path is normally sued only when you need to access a file in your application's directory (where your .EXE is installed), or in a well-known subfolder of your application's folder.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
hi i'm new at this can anyone help me... i have this template and i need to enter data in it and save it again with another name... can anyone help me... my data will come from a dataset, i am able to save the excel file without opening a template, but i need the template for the format of the file... please can anyone help me.... tnx....
|
|
|
|
|
I want to round any float value to its next value but with round function it depends upno the fraction like if i do
round(43.24 , 2) it will return me 43
but i want to get 44
is there any function in vb 6 with which i could do so
Noshaba
|
|
|
|
|
The Int function always rounds to the lower integer. You can use that by negating the number before and after rounding to make it round to the higher integer. -Int(-43.24) returns 44.
---
b { font-weight: normal; }
|
|
|
|
|
I am a newbie for VB.Net. i am trying to validate a textbox (only to put integers or strings). How Can I do That?
Lasitha Kodikara
lasithak5@sltnet.lk
|
|
|
|
|
U can use Validation Controls
Use Regular Expression Validator
Or else U can go for Javascript/Vb Script
"Aim to go where U have never been B4 and Strive to achieve it"
http://groups.yahoo.com/subscribe/dotnetforfreshers
http://himabinduvejella.blogspot.com
|
|
|
|
|
In VS go to the left side drop down, select the text box, right side declarations, choose validating and this is how the code could look like.
private Sub txtMiles_ Validationg(byval sender as object, _
by val e as System.ComponetModel.CancelEventArgs)_
Handels txtMiles.Validating
Try
Dim decMiles as Decimal = Convert.ToDecimal(txtMiles.Text)
ErrorProvider1.SetError(txtMiles, ex.Message)
Catch ex as Exception
ErrorProvider1.Seterror(txtMiles, ex.Message)
End Try
End Sub
If there were no God, there would be no Atheists.
|
|
|
|
|
I have an exercise that have to find the intersections of a vertical line and a given graph (the graph is horizontal, similar to parabola graph) in a picturebox. I use VB.Net for my work. I want to store the positions of the intersections in an array for further use
|
|
|
|
|
Right now I am working on a client/server application. The server sends an image through a network stream (tcpclient.getstream) to the client via image.save(mynetworkstream). The Image.fromstream(mystream) won't complete until I close the network stream from the server, but I need to send more data after the image. How can I complete the sending of the image without closing the stream?
|
|
|
|
|
Write the image data to a MemoryStream, then read the image from the MemoryStream.
---
b { font-weight: normal; }
|
|
|
|
|
Thanks, I can recieve an image now.
|
|
|
|
|
please i nees event in datagrid like textchanged to cell in datagrid.
and how i can do transaction
vb.net 2005
123
|
|
|
|
|
Greetings,
I am writing a VB.Net application in which I am adding print logic. The PageSetupDialog allows me to specify minimum margins for the page. However, each printer has different physical limits for margins and I do not wish to hard code numbers for my current printers. Someday I will probably have new printers and I don't want to have to change my code when I do get new equipment.
Is there any way within VB.Net of getting this information from the system?
Thanks,
Mark Wilton.
|
|
|
|
|
Hi,
I'm trying to build a simple web browser using AxWebBrowser. When the user clicks on any element on the page, I would like to save the html code of the element, but still I would like that the web browser will function normally. e.g. the user will able to click on the links, edit text boxes and etc...
I created the following event handler:
Public Function WebBrowserMain_Click(ByVal e As mshtml.IHTMLEventObj) As Boolean
msgbox(e.srcElement.outerHTML)
Return True
End Function
and hooked it to Onclick event in the DocumentComplete event using:
AddHandler CType(Me.WebBrowserMain.Document, mshtml.HTMLDocumentEvents2_Event).onclick, AddressOf Me.WebBrowserMain_Click
The problem is that after doing it, the user is able to click on buttons and links, but is not able to write into text boxes (The text boxes even don't get focus).
Do you have any suggestions?
Regards,
Tal.
|
|
|
|
|
Hi all,
is there any tree control included in VB6 suite (like the one in VC6)? If not, could you recommend me any good one to download?
Thanks in advance,
Marc Soleda
... she said you are the perfect stranger she said baby let's keep it like this... Dire Straits
|
|
|
|