Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: DataMiser

Page 1 of 80 1 2 3 4

Search: Search took 0.30 seconds.

  1. Re: Help! Vb6 I live in Hawaii, how I can get the current time in NYC from my code?

    You would just need to add the correct number of hours to your current system time. I'm not sure what the difference is to Hawaii, 6hrs maybe? Should be easy to find out with a quick internet search....
  2. Re: how would i create a (should be) simple script:

    Well I told you what function to use and showed the syntax. Have you tried it?
    What did you try? What result did you get?
  3. Replies
    11
    Views
    341

    Re: Assigning an incrementing number

    Probably because you are doing both concatenation and addition using the + sign on the same line. As a general rule always use & for combining strings and + only for addition. Also should always use...
  4. Replies
    11
    Views
    341

    Re: Assigning an incrementing number

    hmm to bad there is no way to display the actual query when using the method you are using.

    Just for the sake of trial try this

    cmd.CommandText = "select isnull(max(increment),0) from forma...
  5. Replies
    11
    Views
    341

    Re: Assigning an incrementing number

    Did you try changing the case in your query to match what is actually in the DB?
    Is it possible that there is a space or other character in the textbox that is causing the query to fail to find a...
  6. Replies
    11
    Views
    341

    Re: Assigning an incrementing number

    You should set a break point here

    If maxrptnum = String.Empty Then
    then check the value of maxrptnum to see what it really is

    Sounds like it is not getting a value from your query.

    Is it...
  7. Replies
    11
    Views
    341

    Re: Assigning an incrementing number

    What is the value of the increment field in the db? Is it a numeric field?
    Have you set a break point to see if the query ever returns something other than an empty string?

    You really should...
  8. Replies
    5
    Views
    214

    Re: Error converting nvarchar to numeric

    I have not really did much with data tables in VB.Net but I would think searching for something like working with data tables in VB.Net would return some useful results.
  9. Replies
    5
    Views
    214

    Re: Error converting nvarchar to numeric

    Well I do see a few places where you are assigning a string to a numeric field there so one of those could be causing the issue. I have saw this happen using a money field where the value was a...
  10. Re: Retaining the text format while displaying in HTML page

    I'm not sure what replacenewlines would do but if it replaces them with anything other than the <br/> tag then that is not going to work and is going to stop the other line from working as well.
    ...
  11. Replies
    2
    Views
    236

    Re: Control ctrlNSDataCombo.ocx

    It looks like you are having an issue with a listview control rather than that combo control.

    Be aware that most VB6 controls do not support unicode
  12. Replies
    5
    Views
    214

    Re: Error converting nvarchar to numeric

    The error message will generally show you a pretty good hint as to which field it is. I have ran into this same error recently. While the error message did not state the field it did show the value...
  13. Re: Retaining the text format while displaying in HTML page

    It is very simple, you just need to replace the CRLFs with the proper html tag before or as you place it into the html.

    I asked if you know how to replace them but you did not really give an...
  14. Re: Retaining the text format while displaying in HTML page

    So does that mean that it actually has CRLFs embedded in the text? You say that it is multiline which would indicate that it does but textboxes do word wrap so must be sure.

    If there are CRLFs...
  15. Re: Retaining the text format while displaying in HTML page

    Well, is the text truly multi line to start with? Meaning does if have CRLFs in it or is it just using the word wrap feature of the text box?
    If it has CRLFs then you could replace those with the...
  16. Replies
    3
    Views
    333

    Re: Kinda stuck - DBNull error

    You can simply append an empty string to the result returned by the query to avoid getting an error there but then your next line will also have to be changed as it will never be dbnull at that...
  17. Re: Need a bit of quick help with something not working

    Moved from VB6 to VB.Net forum
  18. Replies
    2
    Views
    274

    Re: Form not being sent

    Have you tried setting break points in your codoe to see if the click event is being called?
  19. Re: mscomctl.ocx loaded on sys, VB6 still says not loaded!

    Create a new project in the Vb IDE
    Add a treeview control to it if possible then save the project.

    Open the vbp file of both the new project and the troublesome project with notepad
    Locate the...
  20. Re: Trying to add DLL references in ActiveX DLL

    How are you calling the function from code?
    Which function is giving the error?
    Have you tried using the debugger to locate which line is throwing the error?
    What OS are you using?
  21. Re: how would i create a (should be) simple script:

    The function you are looking for is Name

    Name Source AS Destination

    Would most likely need to use run as administrator also since it is in program files
  22. Re: program database writter from vb6 file does not run on win7 ?

    I see you renamed a dat file to mdb.

    Is that dat file and actual microsoft access mdb or is it some other format?

    You can not just rename a file and expect it to magically turn into a database....
  23. Replies
    1
    Views
    509

    Re: # character before a string

    In this case it denotes a filenumber


    X=FreeFile
    Open FileName For Input as #x
    ....
  24. Replies
    5
    Views
    598

    Re: Assistance with notepadding utility

    It is hard to follow what you have there in the OP and I am not really sure what it is supposed to be doing.
    I assume those vars you are referencing have been defined in the proper scope and...
  25. Replies
    6
    Views
    548

    Re: acces values in partial classes

    What is it you are trying to set? =() is not a valid assigment
Results 1 to 25 of 2000
Page 1 of 80 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a Codeguru.com survey!


HTML5 Development Center