Normal Topic subroutine looping (Read 383 times)
mikeweber3
Member
*
Offline


No personal text

Posts: 3
Joined: Dec 23rd, 2005
subroutine looping
Dec 28th, 2005 at 4:09pm
Print Post Print Post  
I do a lot of sub-routine looping programing using similar to this  

>#2501:#71=2501;goto#71

<#71: if(#71>2499)and (#71<2599)then
{
 if@(#71)>0and ???then
 {
   ?????????
    #8=@(#71-100)/@#71+300)
  }
};goto@(#71+100)

My fields are all numbered very orderly and it allows me to do much subroutine and line and column programing from a subroutine using the @field# command

1.   Should I consider naming my fields the old programing numbers so I don't loose this ability?

2.   If I do Will Sesame handle it properly?
 
Oh I see Sesame does not let you start a field name with a number.   I could put a null character at the beginning of each number and then delete the null character off in programing
3.
  
Back to top
 
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: subroutine looping
Reply #1 - Dec 28th, 2005 at 5:46pm
Print Post Print Post  
Mike,

1. You cannot name your elements starting with a number. You should not try to "trick" Sesame into doing so. Sesame uses names in programming, not numbers. If you translate your Q&A database, the numbers will automatically be replaced with names.

2. What you are doing is a Q&Aism that is no longer necessary in Sesame. Sesame allows you to write actual subroutines that take arguments. You do not need to "fake" them with GOTO and @Field.
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged