Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


Goto problem


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-15-2007, 12:46 PM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Switzerland
Posts: 1,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
avoid using goto
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)
File Type: zip TestEigen.zip (5.7 KB, 4 views)
Reply With Quote
  #2 (permalink)  
Old 11-15-2007, 12:58 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 4,831
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

You can't jump into a "code block" - For...Next, If...End If, Do ... Loop, etc.
Its true even if you jump from the same code block.
Reply With Quote
  #3 (permalink)  
Old 11-15-2007, 01:28 PM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Switzerland
Posts: 1,797
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default Eigenvalue end eigenvector calculation

Thank you for your answer.

That means that there is no way to use this routine ?

Does somebody have a routine to calculate eigenvalue end eigenvector of a matrix, without goto's ?

Klaus
Switzerland
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Probleme bei device.exe wegen goto-Befehl urgott German Forum 13 01-24-2008 09:01 AM
avoid using goto paul j Code Samples & Tips 0 11-11-2007 11:56 AM


All times are GMT. The time now is 11:49 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0