Search:

Type: Posts; User: techgnome

Page 1 of 13 1 2 3 4

Search: Search took 0.48 seconds.

  1. VS 2012 Re: implicit conversion from integer to string

    Explicit conversions... that's why the general recomendation is to set Option Explicit On by default.

    -tg
  2. Replies
    2
    Views
    67

    Re: Connection string data source name

    Not automatically... you could even have multiple instances on the same computer... I have three.... SQLEXPRESS, SQLServer200R2 and SQLServer2012 .... I *think* you can use SQL DMO to iterate the...
  3. Replies
    3
    Views
    173

    Re: ASP to VB conversion for a web method

    and now you've introduced a new method: objRk.genericSqlexec(strSQL, objRk._SQLRl) with no mention what it is or what it returns... given that you now have an error that .EOF is not a member of...
  4. Re: Testing whether a SQL statement is valid - SQL Server 2000

    WAy I read it is that
    SELECT 123 - would be valid
    SELECT DatePart(yyyy,GetDate()) -- also valid....
    but
    SELECT DatePart(yyyy,G3tDate())
    wouldn't be? sounds like the value being selected could...
  5. Re: How to obtain the name of the dynamically created label your clicking on

    I'd further point out that we're talking about the .Name property control....
    Dim myLabel as New Label ... that's not a name... that's just the variable...

    yeah... I think we've all been caught...
  6. Replies
    3
    Views
    173

    Re: ASP to VB conversion for a web method

    I tried fixing a car. I inserted herrings with no success...

    that's about what I got from the post...

    "I had tried a few different things with no success." -- what did you try and what does...
  7. Thread: Runpe

    by techgnome
    Replies
    3
    Views
    83

    VS 2008 Re: Runpe

    actually to be fair... It IS letting you do it.. .but you're then corrupting explorer... and since explorer.exe is the main UI application for windows... I'm a little surprised that your system is...
  8. Re: How to obtain the name of the dynamically created label your clicking on

    interesting thing about events... not only does it send in the event arguments... but it also sends in the control that invoked the event... so in your event handler, you know the control that is the...
  9. Replies
    22
    Views
    247

    Re: How to convert VBScript to VB.Net

    I'm jsut trying to figure out what was behind the use of the Parse in the first place... get the current date. lop off 10 days, then use the .ToString method to get the date in a string...

    then...
  10. Replies
    22
    Views
    247

    Re: How to convert VBScript to VB.Net

    Almost, look again... ParseExact... not Parse ...

    -tg
  11. Re: [RESOLVED] Invalid SQL Statement in my VB .NET Code - Can't figure it out

    You're right... we screwed up big time... we made the fatal assumption you knew how to write a syntatcally correct select statement. mea culpa... won't happen again.

    -tg
  12. Replies
    22
    Views
    247

    Re: How to convert VBScript to VB.Net

    "Move will not work across network volumes." -- hmmmm... that's a new one to me... guess I've only ever moved locally.... interesting...

    -tg
  13. Replies
    16
    Views
    202

    VS 2012 Re: MDI forms behaviour

    Arg....
    1) that code shouldn't be in the form load event of frmMain
    2) that code shouldn't be in the form load event of the child form
    3) you missed the most important piece of code... how in blue...
  14. Replies
    22
    Views
    247

    Re: How to convert VBScript to VB.Net

    well fullName is going to come out looking like this:
    Q:\Archive\\\05.16.13*


    which... yeah... is invalid...



    Private Sub Button1_Click(sender As System.Object, e As System.EventArgs)...
  15. Re: Do I really need a BEGIN TRAN and COMMIT in a SPROC

    I wondered about that too... but when I looked at the SQL a little harder, I saw that it's a sequence number based on the client... so an Identity won't work.

    -tg
  16. Replies
    16
    Views
    202

    VS 2012 Re: MDI forms behaviour

    Hmmm.... it would seem that you're setting the MDIParent of the default instance of the form... how are you creating and showing the child forms?

    -tg
  17. Replies
    22
    Views
    247

    Re: How to convert VBScript to VB.Net

    Step 1 - Read the documentation

    -tg
  18. Re: Do I really need a BEGIN TRAN and COMMIT in a SPROC

    Generally speaking... yes... occasionally though, you have to help it along...

    -tg
  19. Replies
    22
    Views
    247

    Re: How to convert VBScript to VB.Net

    What check? I don't see any "check" in your code... you're grabbing an entire folder and coping it to a new location, using the date as the folder name...

    -tg
  20. Re: Invalid SQL Statement in my VB .NET Code - Can't figure it out

    wow... then you missed out on the whole point of the article... which is how to use parameters.... funny thing is that using parameters in a select is exactly the same as in an insert or an update......
  21. Re: Timeout error while executing delete query in SqlCommand

    err.... yeah, what he said.... I didn't even say anyhting about using NOLOCK hint... all that would do is allow you to read uncommitted transactions... its does NOT bypass the READ LOCK that the...
  22. Thread: Unload Me

    by techgnome
    Replies
    9
    Views
    184

    Re: Unload Me

    No it's not the same thing... as soon as you unload a form, your Forms.Count drops by one... eventually the loop will hit the end of the array and complain about the index exceeding the bounds of the...
  23. Re: Timeout error while executing delete query in SqlCommand

    It's your Reader... when you use a reader, it gets an exclusive lock... which can then tie up the tables in the query... you get the time out because it waits for the lock to be released so it can...
  24. Replies
    2
    Views
    97

    VS 2010 Re: Text on form!

    It's called the TitleBar... and you set it by setting the Text property of the form as dbasnett showed.

    -tg
  25. Re: Users getting an error when starting my application

    The key maybe the 5 words that happen after the assembly name ... "or one of its dependencies." ... which means that DevIL.NET2 may be relying on yet more assemblies, which aren't being carried over...
  26. Re: Do I really need a BEGIN TRAN and COMMIT in a SPROC

    wow... can they do it again?
    There is a "transaction" but it's an implied transaction and "commits" as the line runs... it's weird... but the point is that what you're seeing is possible but...
  27. Replies
    10
    Views
    148

    Re: get all directories in all o/s

    Against my better judgement... I'm going to allow myself to get sucked into this thread for a moment...

    what you're looking for is the Dir() function

    I'll leave it to you to figure the details....
  28. Re: how to refresh the listview with another form

    Personally I don't care for forms that load data in other forms like this... having a "please wait" form is fine... but that's all it should do... it should be generic and do nothing more.... the...
  29. Re: Drop down boxes and javascript - How to get the value

    it looks right, but it isn't... first, when you call the onChange event, the function you're calling is expecting a parameter... so you need to supply one... which is where the rest of your problem...
  30. Replies
    20
    Views
    276

    Re: Getting variable from dll function

    yes... you can use the same parameter name across multiple methods... one has nothing to do with the other... it's just a name.

    -tg
  31. Replies
    8
    Views
    121

    Re: SQL Server Batches

    Yeah, GO won't work inside of an sproc... outside of it, it works great... and you don't need to use transactions with Try/Catch... but it could be used in a stored proc to prevent errors from...
  32. Replies
    20
    Views
    276

    Re: Getting variable from dll function

    it's defined right there... it's the name of the parameter... it's just like any other method you would create in VB... I'm not sure what the disconnect is, except that you may have issues with the...
  33. Replies
    20
    Views
    276

    Re: Getting variable from dll function

    Huh? What do you mean no variable name is given? retval is the variable name... from the DLL side... from the VB side, you pass it any Long variable you want... Oh... wait... that's a C long isn't...
  34. Re: Database text field. Allow Zero Length Yes/No

    More likely it was the drivers doing it than VB6 itself... but yes, the users shouldn't be fiddling about with the DB like that... and if they are, that's like breaking the seal and voiding the...
  35. Replies
    8
    Views
    121

    Re: SQL Server Batches

    well, since you can't have a GO in the middle of a stored proc (at least not that I'm aware of... I've always used the GO at the end, signifying the end of the SP) it's kind of moot... but in these...
  36. VS 2012 Re: Automate Command Prompt Window (CMD) and doing many commands at a time

    meaning that the calls between the commands aren't persisting... so if I do a "cd \cmd" ... it does... but the window (the hidden cmd one) doesn't stick around, so if I then try to run a file in that...
  37. Replies
    2
    Views
    117

    Re: data source nameing

    Check to make sure that SQLServer Express has been installed... AND that the default named instance is correct... what you left out in the error message was the next sentence... "The server was not...
  38. Re: Database text field. Allow Zero Length Yes/No

    "If "Allow Zero Length=No" then an empty string is allowed but null isnt." --- that sounds backwards...

    a zero-length string would be an empty string... which is not the same as a null. you can...
  39. Re: Matlab function in VB.NET does not work. What's wrong with it?

    there's nothing wrong with the com object... at least there wouldn't be if you actually instanciated it... you declared calcul as a tesxting_COM.Class1 ... that's fine... but you never created the...
  40. Replies
    20
    Views
    276

    Re: Getting variable from dll function

    you only use SET when SETting an object... the .get_ChannelNo is a property that returns a long... not an object... so there's no need to SET the variable...

    -tg
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4