Results 1 to 18 of 18

Thread: Graphing program

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 2000
    Location
    California
    Posts
    154
    I've uploaded my graphing program and a ReadMe file so try it out.

    Just uploaded a new one with a couple of fixes.
    Attached Files Attached Files
    Last edited by Bjwbell; Feb 27th, 2001 at 08:29 PM.
    VB-World addict!

    All spelling errors are undocumented words!
    http://www.bells.f2s.com

  2. #2
    Banned
    Join Date
    Feb 2001
    Location
    Back to sh*tland
    Posts
    294

    How does it work?

    I didn't quite understand how does your program works.
    When I press space the error 13 occurs.

    And put the form's AutoRedraw property set to True so that the axes won't disappear once in a while.

    I also work with graphs and stuff like that and I was curious about this program.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jul 2000
    Location
    California
    Posts
    154
    Here's the source.
    Thanks for telling me about uploading the source instead of exe's.
    the source is a bit different since i've made a couple of improvements.
    Attached Files Attached Files
    Last edited by Bjwbell; Mar 2nd, 2001 at 02:07 AM.
    VB-World addict!

    All spelling errors are undocumented words!
    http://www.bells.f2s.com

  4. #4
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Does anyone have replacements for Replace, Split and all that lot, please? It doesn't work on mine.

    PS: Is modGraph.bas needed?

    Damn VB6...I had to change the project file in about 8 places
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  5. #5
    Banned
    Join Date
    Feb 2001
    Location
    Back to sh*tland
    Posts
    294

    Angry Screen Resolution!!

    I believe that many people don't bother to have the maximum resolution, but you shouldn't think that all have good monitors OR good eyes to support a high resolution.

    If you want your program to be used by others, you should make it accessible to all.
    Make a second form with the buttons and the text boxes. That's more practical!

    And I don't care if I'm the only one who uses low screen resolution. I'm only caring about my eyes and whoever uses this computer.

    I'm 16 years, I don't wear glasses and don't intend to.

  6. #6
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    I destroy my eyes with 1024x768 on a 14"

    But you do have a point, and I would suggest having a resizable window that moves everything around as necessary.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  7. #7
    Banned
    Join Date
    Feb 2001
    Location
    Back to sh*tland
    Posts
    294

    good idea

    That's a good idea of a resizable window.
    There are so many things a guy can do, so why to sacrifice our eyes?
    Maybe I'm overreacting... but it's very sad, one day, to look at some one out of focus.

  8. #8
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    I used to wear glasses for a muscle problem in my eyes but I don't need them now...although when I'm tired I go really long-sighted.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  9. #9

    Thread Starter
    Addicted Member
    Join Date
    Jul 2000
    Location
    California
    Posts
    154
    Thanks for all the suggestions.
    I've made it so all the controls for graphing are on a different form so you can have the graphing for any size you want.
    VB-World addict!

    All spelling errors are undocumented words!
    http://www.bells.f2s.com

  10. #10

    Thread Starter
    Addicted Member
    Join Date
    Jul 2000
    Location
    California
    Posts
    154
    Here's the new program. i forgot too add it too the last post.
    Attached Files Attached Files
    VB-World addict!

    All spelling errors are undocumented words!
    http://www.bells.f2s.com

  11. #11
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Well...does anyone have replacements?
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  12. #12

    Thread Starter
    Addicted Member
    Join Date
    Jul 2000
    Location
    California
    Posts
    154
    this is the closest i got got.
    Code:
    Function Replace2(Exspression As String, Find As String, Replace As String)
    Dim strTheString As String
    Dim intLen As Integer
    Dim Temp As String
    Dim strReturn As String
    Dim i As Integer
    Dim j As Integer
    Dim Bool As Boolean
    strTheString = Exspression
    intLen = Len(strTheString)
    For i = 1 To intLen
        Temp = Mid(strTheString, i, 1)
        If Temp = Find Then
            Temp = Replace
        End If
        strReturn = strReturn + Temp
    
    Next
    Replace2 = strReturn
    End Function
    It will work for my program because i only replace X with a number.
    VB-World addict!

    All spelling errors are undocumented words!
    http://www.bells.f2s.com

  13. #13
    Fanatic Member
    Join Date
    Sep 2000
    Location
    UK.
    Posts
    728

    Smile Try this...?

    I had a quick look through the source code, and you seem to be 'over complicating' the stack issue with collections and UDTs. Try using the following stack class that i coded for use in my expression calculator. It is nice and simple. Other functions, such as Peek() (to view the top element) cold easily be added.

    Code:
    'CStackNUM.cls - Stack for dealing with numerical elements. All data is stored as doubles.
    Option Explicit
    
    Private mArray() As Double
    Private mintLevel As Integer    'Store the depth of the stack.
    
    Private Sub Class_Initialize()
        mintLevel = 0
    End Sub
    
    'Pop the top element from the stack
    Public Function Pop() As Double
    Dim retDbl As Double
    
        'Check to see if we have any elements to pop
        If mintLevel > 0 Then
        
            retDbl = mArray(mintLevel)
            mintLevel = mintLevel - 1
            ReDim Preserve mArray(mintLevel)
            Pop = retDbl
            
        Else
        MsgBox "Error. Stack Empty."
            Exit Function
        End If
    
    End Function
    
    'Push an element onto the stack
    Public Sub Push(ByVal Element As Double)
    
        mintLevel = mintLevel + 1
        ReDim Preserve mArray(mintLevel)
        mArray(mintLevel) = Element
    
    End Sub
    Hope this helps.

    Laterz
    Digital-X-Treme
    Contact me on MSN Messenger: [email protected]

    [VBCODE]Debug.Print Round(((1097) - ((55 ^ 5 + 311 ^ 3 - 11 ^ 3) _
    / (68 ^ 5))) ^ (1 / 7), 13)[/VBCODE]

  14. #14

    Thread Starter
    Addicted Member
    Join Date
    Jul 2000
    Location
    California
    Posts
    154

    Smile

    Thanks Digital-X-Treme

    I've added some stuff to the prgram, you can graph more than one function and get the intercection between two functions.
    Attached Files Attached Files
    Last edited by Bjwbell; Mar 2nd, 2001 at 08:22 PM.
    VB-World addict!

    All spelling errors are undocumented words!
    http://www.bells.f2s.com

  15. #15

    Thread Starter
    Addicted Member
    Join Date
    Jul 2000
    Location
    California
    Posts
    154
    You can Now get the Minuimum and Maximum of a function in a given interval.
    Attached Files Attached Files
    VB-World addict!

    All spelling errors are undocumented words!
    http://www.bells.f2s.com

  16. #16

    Thread Starter
    Addicted Member
    Join Date
    Jul 2000
    Location
    California
    Posts
    154
    Just fixed a couple of bugs.

    Does anyone know where i can get the Microsoft Script Control?
    Attached Files Attached Files
    VB-World addict!

    All spelling errors are undocumented words!
    http://www.bells.f2s.com

  17. #17
    Fanatic Member
    Join Date
    Sep 2000
    Location
    UK.
    Posts
    728

    MS Script Control

    For the MS Script Control, go to PROJECT>>COMPONENTS, and scroll down and select Microsoft Scrip Control. Voila

    Later
    Digital-X-Treme
    Contact me on MSN Messenger: [email protected]

    [VBCODE]Debug.Print Round(((1097) - ((55 ^ 5 + 311 ^ 3 - 11 ^ 3) _
    / (68 ^ 5))) ^ (1 / 7), 13)[/VBCODE]

  18. #18

    Thread Starter
    Addicted Member
    Join Date
    Jul 2000
    Location
    California
    Posts
    154
    I don't have it so i need too download it.
    VB-World addict!

    All spelling errors are undocumented words!
    http://www.bells.f2s.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width