Search:

Type: Posts; User: Crazy D

Page 1 of 10 1 2 3 4

Search: Search took 6.12 seconds.

  1. Replies
    5
    Views
    506

    Yes you can use 1 generic class for that. That...

    Yes you can use 1 generic class for that. That is, you need to write code of course to retreive the database structure etc. to be able to do correct validation of any data, but yes you can. No need...
  2. Replies
    2
    Views
    565

    Nope, not from both the dll's. If you call an...

    Nope, not from both the dll's. If you call an activex object from your asp code, you can't access anything (session, application, etc) from asp.
  3. Replies
    3
    Views
    477

    Uhmm yes, but the point of using objects is that...

    Uhmm yes, but the point of using objects is that you isolate code, and that you can just use the object to get something.
    I often use classes to represent a record in the database, give it search...
  4. Easiest way to understand them is to use the...

    Easiest way to understand them is to use the add-in to create a usercontrol. Drop a textbox on the usercontrol, and use the add-in to create some properties. Then read the code and see how it's...
  5. Replies
    20
    Views
    797

    I think so, although personally I'd go for MSDE...

    I think so, although personally I'd go for MSDE (free SQL Server) if you need something more powerfull then Access.
    MySQL doesn't even have stored procedures, and doesn't support sub-query's...
  6. Replies
    12
    Views
    497

    check out \n alert('blah\nmore blah on a new...

    check out \n
    alert('blah\nmore blah on a new line');
  7. CrLf's will be processed as CrLf... so if you...

    CrLf's will be processed as CrLf... so if you want to show them as a CrLf on a html page, you need to replace them with the <br> tag.
  8. Replies
    2
    Views
    411

    In C, there's no string data-type. A 0-char...

    In C, there's no string data-type. A 0-char (Chr$(0)) marks the end of a string. The CR API is written in C, so...
  9. Replies
    5
    Views
    450

    You need to add the new name: SHF.pFrom =...

    You need to add the new name:
    SHF.pFrom = "c:\test\*.bat"
    SHF.pTo = "c:\test\*.old" ' or something like that

    If you want to move them from \test to \ you need to use FO_MOVE

    And maybe you...
  10. Replies
    3
    Views
    564

    There is no such thing is App.IsRunningInIDE But...

    There is no such thing is App.IsRunningInIDE
    But a while ago someone posted something like
    Debug.Print 1 / 0
    In the IDE this will cause a "division by zero" error. In the exe it won't since debug...
  11. Thread: API in delphi

    by Crazy D
    Replies
    9
    Views
    801

    Most of the API's are already available thru the...

    Most of the API's are already available thru the sysutils unit.

    I agree, find another board, this is VB, and not many ppl here know Delphi (or don't want to answer).
  12. Replies
    6
    Views
    1,046

    I hope I'm wrong cus it would be kewl, "Call...

    I hope I'm wrong cus it would be kewl, "Call SwapMemory" would look kewl ;-), but don't count on it too much that's all I'm saying.

    hehe and i won't call you pedantic until I know what it means ;-)
  13. Replies
    6
    Views
    1,046

    I don't think there's an undocumented function...

    I don't think there's an undocumented function for that. Memory management is one of the basic things an OS must do, and, I think a 2nd thing an OS must do is not to let programs themselves do so....
  14. Replies
    3
    Views
    588

    If a function returns -1 to indicate nothing was...

    If a function returns -1 to indicate nothing was found, it's declared as integer or long, not as boolean.
    A boolean is within VB always 0 and -1, although it accepts 0 as false and anything else as...
  15. Replies
    6
    Views
    1,046

    It's not the programs who do so, it's windooz...

    It's not the programs who do so, it's windooz which has some improved memory handling in w2k.

    What you could do yourself though, is, for instance, save huge arrays to a textfile when you know you...
  16. Depending on what file it is... txt opened with...

    Depending on what file it is... txt opened with notepad can be deleted.. when it's opened with word you can't..

    Uhmmm can you shorten you signature a little? It's almost one full screen (17"...
  17. Replies
    6
    Views
    558

    You can't unload controls in the combo click...

    You can't unload controls in the combo click event. It's a documented error, I've had it before, and after a little search in MSDN I found out it's not allowed to unload control in the combo click. I...
  18. Thread: Big Guns

    by Crazy D
    Replies
    1
    Views
    459

    I guess it all started as plain luck. I got a job...

    I guess it all started as plain luck. I got a job as a programmer with my last boss, I worked there on the administration department, I got the job as programmer, had to start 3/4 year later, and in...
  19. Thread: OCX's

    by Crazy D
    Replies
    5
    Views
    552

    If you use OLE_COLOR instead of long, you get the...

    If you use OLE_COLOR instead of long, you get the button with the ... on it with which you can select a custom colour, and you get the drop down with system colours...
  20. Replies
    14
    Views
    938

    You need to use Set FACE.Picture =...

    You need to use

    Set FACE.Picture = LoadPicture(sPath)
  21. Replies
    1
    Views
    625

    Dim sFile As String sFile = Dir$("C:\*.*") Do...

    Dim sFile As String
    sFile = Dir$("C:\*.*")
    Do While sFile <> ""
    If sFile <> "." And sFile <> ".." Then
    List1.Add sFile
    End If
    ' calling dir without a path "resumes" from the...
  22. Replies
    18
    Views
    1,010

    In the quoted part,I assume you want imgHead only...

    In the quoted part,I assume you want imgHead only be visible if all the others are invisible.
    I would have done something like


    if imgHead.Visible = False And imgFeet.Visible = False ... Then
    ...
  23. Replies
    8
    Views
    674

    In MSDN is a complete overview of all the editor...

    In MSDN is a complete overview of all the editor shortkeys. (search for Keyboard Guide)
  24. Replies
    6
    Views
    610

    Dan Appleman has written a very intresting...

    Dan Appleman has written a very intresting article about threading in VB:
    http://www.desaware.com/articles/threadingL3.htm

    if the link doesn't work, it's in the technical articles section, "A...
  25. Replies
    2
    Views
    718

    Not sure if you can pass a recordset from a dll...

    Not sure if you can pass a recordset from a dll (I'm not sure if VB allows it, if it doesn't you can just return it as Object). But you don't need to do a createobject first, this is enough:
    Dim rs...
  26. Replies
    18
    Views
    1,010

    It works the same in all programming languages....

    It works the same in all programming languages.
    Although there are some slight differences what exactly is evaluated. VB evaluates the complete If line, while C checks the first boolean expression,...
  27. Replies
    5
    Views
    758

    Wer're using TrueDBGrid by Apex. It allows you to...

    Wer're using TrueDBGrid by Apex. It allows you to edit every cell and you can add controls they use for input validation (so usually, in a numeric field you get an error after you typed plain text,...
  28. Replies
    6
    Views
    709

    You need to compile the dll.

    You need to compile the dll.
  29. Replies
    9
    Views
    742

    On http://www.codeguru.com/vb are some nice...

    On http://www.codeguru.com/vb are some nice working examples of syntax colouring for various languages incl. VB
  30. Thread: the "$" sign?

    by Crazy D
    Replies
    19
    Views
    775

    But if you want to pass a large string to a...

    But if you want to pass a large string to a function in VB,you can pass it ByRef. (Which is basically a pointer.)

    If you ever did something like this:
    Dim t As textBox
    Set t = MyForm.Text1
    From...
  31. Thread: ScrollWindow

    by Crazy D
    Replies
    2
    Views
    800

    You can do it pretty easy without API and just 2...

    You can do it pretty easy without API and just 2 pictureboxes and scrollbars (one picturebox is the size of the form, the "view", the other picturebox is inside the "view" picturebox, and is as large...
  32. Thread: the "$" sign?

    by Crazy D
    Replies
    19
    Views
    775

    $ stands for string Right returns a variant,...

    $ stands for string
    Right returns a variant, Right$ a string, etc.

    Nope no pointers in VB, however, of course there's ByRef, which comes close to pointers :-)
  33. Replies
    4
    Views
    490

    Here's an ini class I wrote a time ago:...

    Here's an ini class I wrote a time ago:
    http://codeguru.earthweb.com/vb/articles/1772.shtml
  34. Replies
    7
    Views
    727

    I've used controls from http://www.swiftsoft.com...

    I've used controls from http://www.swiftsoft.com
    Initally it can rip to wave file, but, if you have the right codec installed, it can rip directly to mp3.
  35. Then define the event in the form eg. Event...

    Then define the event in the form eg.
    Event ButtonClicked
    and call it when the button is clicked:
    RaiseEevent ButtonClicked

    You need to make sure you dim the form in the class with WithEvents,...
  36. Replies
    13
    Views
    988

    be glad ppl get dumber and dumber... that makes a...

    be glad ppl get dumber and dumber... that makes a huge part of my living (if the customers aren't that stupid, we don't have to write validation and error handling, and then the program would have...
  37. Replies
    13
    Views
    988

    Just checked... I made a connection (using ADO)...

    Just checked... I made a connection (using ADO) to an Access database, and after I opened the connection I couldn't delete the database (running NT 4 server).
    So uhmm that should be enough....
    If...
  38. What you try to do is a feature of I believe w2k,...

    What you try to do is a feature of I believe w2k, with older windooz that wont work and therefor you need to put the dll's/ocx's in the system dir.
  39. Thread: VB for Linux?

    by Crazy D
    Replies
    2
    Views
    330

    I think Pascal is older then Basic.... But I'm...

    I think Pascal is older then Basic....
    But I'm looking forward to the day I get Delphi for Linux, finally writing code that both works in windooz and linux.
  40. Thread: Ugly Code!

    by Crazy D
    Replies
    28
    Views
    1,433

    Use that auto-capitalization to check if the...

    Use that auto-capitalization to check if the varname is speleld correctly? I type 3 or 4 chars and hit ctrol+space and let VB type the rest...
    I usually comment kinda when I'm writing, sometimes...
Results 1 to 40 of 392
Page 1 of 10 1 2 3 4



Click Here to Expand Forum to Full Width