Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. magnus2

    Newbie question, String index out of range

    In an applet I got this error-message in a Java-s system window. What could be the problem? Grateful for comments. java.lang.StringIndexOutOfBoundsException: String index out of range: -13 at java.lang.String.substring(Unknown Source) at...
  2. magnus2

    VB:NET, SQL DateTime

    I needed to use ' signs also around a double variable to make SQL accept a double with more than one decimal. Strange! Should I always use ' around my variables? Maybe parameters then, but I think my code will work on my local database. Thanks! /Magnus
  3. magnus2

    newbie SQL question, double data type

    Hm, it works when I do it like this and put 'signs around the double variable: StrSQL = "INSERT INTO Table1 (A, B)" & _ " VALUES (" & integerA & ", '" & doubleB & "')" The 'signs seems to be a somewhat magical solution. Should I always have ' around my variables? Maybe this is a VB question...
  4. magnus2

    newbie SQL question, double data type

    That is I can enter a number with more decimals directly in the table, but it doesn't seem tom be possible to send it from Visual Basic. Hmm...strange...
  5. magnus2

    newbie SQL question, double data type

    Hi! There's only room for one decimal though it says 'data type double' in the SQL table. I don't use a server, only a database on my computer. I will try your suggestions. Thank you!
  6. magnus2

    newbie SQL question, double data type

    Hi! I send a double variable from VB.NET code to a SQL database on my own computer. There seems to be a problem when the double contains a lots of decimals. This prevents the variable from being sent. Is it possible to change the allocated memory space for the double in the database or do I have...
  7. magnus2

    VB:NET, SQL DateTime

    Thanks again! This also seems to work: StrSQL = "INSERT INTO FyllTid (A, B, C, D, Time1)" & " VALUES (" & a & ", " & b & ", " & c & ", " & d & ", '" & time1 & "')" The ' signs around time1 does the trick!! Thanks!
  8. magnus2

    VB:NET, SQL DateTime

    Hi again! The variable name is not the problem. Sorry for troubling you with that. No debugging error messages. I will look up SQL injection. Thanks for your time so far! Thank you very much!
  9. magnus2

    VB:NET, SQL DateTime

    Hi! SET DATEFORMAT mdy is not allowed by the build error manager in VB.NET. The database is local on my machine. Could the localization still be a problem? I'm still struggling :)
  10. magnus2

    VB:NET, SQL DateTime

    Hi! I have trouble sending a DateTime variable from VB code to a SQL database DateTime field. I use this: StrSQL = "INSERT INTO FyllTid (A, B, C, D, Time)" & " VALUES (" & a & ", " & b & ", " & c & ", " & d & ", " & time & ")" Time is DATETIME in SQL and time is DateTime in VB.NET. What could...
  11. magnus2

    newbie question: VB.NET, SQL, database

    Hi! I want to write data to a database using SQL frases from Visual Basic .Net code. How do I do it? Kind regards /Magnus
  12. magnus2

    newbie question: executable file

    I have put some activex components on a form and made an application. Now I want an executable file that will run on another computer. The activex components are installed on the other computer. If I do 'build solution' (I use VB.net) I get a .exe file but that don't run on the other computer...
  13. magnus2

    WebBrowser control, right click menu

    Thank you DrJavaJoe for your answer! I just - maybe - have found a way to work around this problem, but I ask you anyway - how do I hook a window? Thanks again for your time. Thank you very much!
  14. magnus2

    newbie question: ASP, HTML

    I'm not sure that this is what I need but maybe. Thanks! What is the exact workings of this code?: <meta http-equiv="refresh" content="5; url=http://www.example.com/noscript.asp"/> For me it is important that the redirecting web page will be omitted from the browser history folder - as is the...
  15. magnus2

    newbie question: ASP, HTML

    Thank you shaddow! I use som scripting statements in my HTML. But if the user has scripting turned off I want him to be redirected instead with no trace in history. Since this won't work: <noscript>location.replace(...)</noscript> I hope I can use ASP and <% Respons.redirect %> instead. I...
  16. magnus2

    newbie question: ASP, HTML

    Thank you Genimuse and Bullschmidt for your time and answers! But can I do something like this then?: <% If (Active scripting is turned off on the client computer) Then ... End If %> Hope one of you or someone else has some ideas! Thank you very much!
  17. magnus2

    WebBrowser control and right click menu

    Hello! I use a WebBrowser control. I use WebBrowser.Navigate to open a web page. The usual IE right click menu is displayed when I right click over the page. Can I disable the right click menu directly from Visual Basic? I'm very grateful for comments!
  18. magnus2

    WebBrowser control, right click menu

    Hi! I use a WebBrowser control. I use WebBrowser.Navigate to display a web page. The usual IE right click menu is displayed when I right click over the page. Can I disable the right click menu directly from Visual Basic? I'm very grateful for comments!
  19. magnus2

    newbie question: ASP, HTML

    Will this work? <noscript> <% some ASP code %> </noscript> Or will the ASP code be carried out under all circumstances - i.e. also when HTML code between the tags would be ignored? How can I otherwise make ASP dependent on HTML events? Very grateful for comments!
  20. magnus2

    strange question, download time

    Hi again! This seems to work wich I found in another thread: <% t=timer() sec = 60 'Number of seconds to pause while(t+sec > timer()) 'do code wend %> Should I put the server.scripttimeout in the beginning? How do I write? Thanx!

Part and Inventory Search

Back
Top