Hi Sunaj,
thankyou for the reply, do you know anywhere i can look up the dangers of passing byref as opposed to explicit hardcoding? I've always been too scared of messing up Text1 and Text10 to do a global replace ( and no, i don't really name by controls quite like that but you know what i...
I would prefer ByRef as then when you change Text1 to NewText47 you only need to change the code once. Is there any reason they have to go ByRef instead of ByVal? What problems is it causing you? I'd be interested too as I'm not that experienced either,
Andy
hi,
the problem is in your second if statement it works as
If (HoldDate < 90) And (Not 0) Then when what you probably want is
If HoldDate < 90 And HoldDate <> 0 Then
HTH
Andy
hi Ebee,
it will use the full time, not just the seconds, similarly MsgBox DateDiff("s", "25/12/01 5:42:18 AM", "27/12/01 7:26:38 AM") will give you a LARGE number,
HTH
Andy
Hi Thom,
you can use - if Dir("C:/PathToTextFileAndName.txt")="" then doesn't exist, or if Dir("C:/PathToTextFileAndName.txt")<>"" then does exist
HTH
Andy
Hi Brooks,
i was trying to do a similar thing in vb the other day but using .Execute instead. It was really flaky. In the end i resorted to the below code, which generates a file on your local drive/server, which i then read back into a var. Strangely, it seems not only more reliable but...
Hi Arden,
there probably is but it may be just as easy to make a small form that looks like a message box ( you can even leave off the OK button if you don't want it ) and then use it's timer event to close after whatever you want,
HTH
Andy
Hi All,
i'm building an application in vb6 that i want to grab various pages from a particular website, run through them looking for a particular tag and then chuck out the data in my chosen format. I'm happy with the parsing and writing but only the first inet call works, any subsequent...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.