|
-
May 7th, 2005, 11:51 AM
#1
Thread Starter
New Member
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.
-
May 7th, 2005, 12:15 PM
#2
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 Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API 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 
-
May 7th, 2005, 12:33 PM
#3
Thread Starter
New Member
-
May 8th, 2005, 02:45 AM
#4
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:
Sub M_max_rvn(A(), m, n, max, rn, vn)
Dim i, j
max = A(1, 1) ' this is incorrect as max is always empty
rn = 1
vn = 1
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
For j = 1 To n ' once j goes above 7 it is out of range
If A(i, j) > max Then ' this can't work as max is empty
max = A(i, j)
rn = i
vn = j
End If
Next j
Next i
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|