Results 1 to 4 of 4

Thread: VB and massives problem

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2005
    Posts
    2

    VB and massives problem

    I really need help from someone who's willing to overlook (and correct) a work I made for university. There is a bug in there but I just can't figure out what I did wrong

    I have to submit my work tomorrow by noon and I've just about everything I know. I haven't got anyone else to ask for help

    As soon as I hit the "Opereeri" button (as seen here) I get the following error (as seen here)

    http://www.ramones.pri.ee/arvuti2.xls - here is the file itself.

  2. #2
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: VB and massives problem

    Welcome to the Forums.

    Usually we dont give code for homework projects unless the poster shows an effort. So we can help guide you since you already wrote the app.
    Only problem is that none of the links work. Try attaching the files to a post for easier and faster access.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  3. #3

    Thread Starter
    New Member
    Join Date
    May 2005
    Posts
    2

    Re: VB and massives problem

    damn, that's right my service provider has limited the incoming connections from other countries. Let's try linking these pics/xls file again.
    It says that xls is an invalid filetype and so I compressed it in .zip archive.

    Oh and believe some hard work has been done with this project. The bad thing is that I have to submit this work by tomorrow noon and I haven't got any idea what I did wrong. I'm sure I'm just missing something important...
    Attached Images Attached Images   
    Attached Files Attached Files

  4. #4
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: VB and massives problem

    well i know what the error is from, but i have no idea how to fix it as i don't undersatnd the required result and also don't understand the langauge
    VB Code:
    1. Sub M_max_rvn(A(), m, n, max, rn, vn)
    2.  Dim i, j
    3.  max = A(1, 1)    ' this is incorrect as max is always empty
    4.  rn = 1
    5.  vn = 1
    6.   For i = 1 To m     ' if m here is swapped fo the n below he code runs, but i have no idea if that is right
    7.    For j = 1 To n     ' once j goes above 7 it is out of range
    8.    If A(i, j) > max Then    ' this can't work as max is empty
    9.    max = A(i, j)
    10.    rn = i
    11.    vn = j
    12.    End If
    13.    Next j
    14.   Next i
    15. End Sub

    i can't help more than that

    pete

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