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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by speek

  1. speek

    sysinfo.ocx not

    Thanks, it does work now. But I don't want a message box, but one line of code in Private Sub CommandButton_Click() only when the OS is Windows NT. The line of code I need is: sBat = sBat & "echo." & vbCrLf & "pause" This is to put the command "pause" at the end of...
  2. speek

    sysinfo.ocx not

    It would be very useful if it worked, but I get a compile error: "User-defined type not defined" on "Dim OSInfo As OSVERSIONINFO" Speek
  3. speek

    sysinfo.ocx not

    I need to query if the OS is Win9x or WinNT. I know this can be done with sysinfo.ocx, but can it also be done without sysinfo.ocx? (My VB6 Learning Edition nags about a license when I try to use sysinfo.ocx)
  4. speek

    Option button value in ini-file

    CajunCenturion, Thanks a bundle!!! It works like a charm. Jippee :-) Speek
  5. speek

    Option button value in ini-file

    OK, here it is: Public Sub INI_LoadForm(ByVal frm As Form, Optional ByVal INIFile As String, Optional ResetFile As Boolean = False) ' This is for incase the file was already deleted On Error Resume Next ' Create a generic INI name from the App title If INIFile =...
  6. speek

    Option button value in ini-file

    Hi CajunCenturion, Thanks for your help. One question: how should I define "TextFromINI"? Speek
  7. speek

    Option button value in ini-file

    The values of option buttons are stored in the ini-file as true/false. When I start the program these values are not loaded. But if I change true/false in the ini-file manually to 1/0, the values are loaded correctly. Is this a known VB6 problem? What should I change to make things work? Speek
  8. speek

    How to remove last character of a string?

    I tried Brian's solution and it works fine. Thanks to both of you. Speek
  9. speek

    How to remove last character of a string?

    How to remove the last character of a string (of unknown length)? Explanation: The user selects a path. The program adds a backslash at the end of the path. But in one case this backslash must be removed. Speek
  10. speek

    Win9x / WinNT

    Found it. Works fine :) Thanx for your help.
  11. speek

    Options buttons and ini-file

    I don't know where I got it. I will copy it here (hope it's OK to post so much text): Option Explicit ' Read INI functions Private Declare Function GetPrivateProfileInt Lib "kernel32" Alias "GetPrivateProfileIntA" (ByVal lpApplicationName As String, ByVal lpKeyName As...
  12. speek

    Options buttons and ini-file

    I don't know where I got it. I will copy it here (hope it's OK to post so much text): Option Explicit ' Read INI functions Private Declare Function GetPrivateProfileInt Lib "kernel32" Alias "GetPrivateProfileIntA" (ByVal lpApplicationName As String, ByVal lpKeyName As...
  13. speek

    Win9x / WinNT

    Thanx Jon4747, that's exactly what I need. Is a Sysinfo control included in standard VB6 or can I find it somewhere on the net?
  14. speek

    Options buttons and ini-file

    Well other other controls get their values from the ini file correctly. So the loading of the ini-file seems to work fine. The INI module contains the function INI_LoadControlValues and in that function "OptionButton" is one of the cases. So I really can't grasp what's going wrong.
  15. speek

    Win9x / WinNT

    Thanx Josh! Maybe I can use this, but I would rather just know if it's Windows9x or WinNT. So only two possibilities. Anbody has code for that?

Part and Inventory Search

Back
Top