Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

Goto problem

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-15-2007, 01:46 PM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 3,827
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
  #2 (permalink)  
Old 11-15-2007, 01:58 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 13,162
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, 02:28 PM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 3,827
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 Off
Pingbacks are Off
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 10:01 AM
avoid using goto paul j Code Samples & Tips 0 11-11-2007 12:56 PM


All times are GMT. The time now is 10:06 PM.


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