Thread: Goto problem
View Single Post
  #1 (permalink)  
Old 11-15-2007, 01:46 PM
klaus's Avatar
klaus klaus is offline
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 3,797
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default Goto problem

Hello Erel
I am writing a progam to calculate eigenfrequecies for mecanical systems.
For that I need to calculate eigenvalues and eigenvectors of a matrix.
I have been using a routine from HP with goto's in. The routine ran in HP Basic (since the late 80's) and still runs in VB6. The routine was probably originally written in Fortran.
I transfered it to Basic4ppc and I get an error.
I transfered it from Basic4ppc back to VB, to be shure that I did not add any errors, and the routine works.
I joined the routine below in Basic4ppc and VB.
Can you please have look and see what and why this happens ?

I agree with paul j in his comment not to use goto's
http://www.basic4ppc.com/forum/code-samples-tips/1139-avoid-using-goto.html
but the routine exists and is stable and accurate.

Thank you in advance, I am allways impressed by your quick and very approprate answers.

Klaus
Switzerland
Attached Files
File Type: sbp TestEigen.sbp (19.6 KB, 13 views)
Reply With Quote