??? 12/22/04 16:51 Read: times |
#83633 - Look to VB Responding to: ???'s previous message |
OK, so I went to the BlueEarth webpage to find out how the labelless editing works, but found just a statement that is is a "modular format with symbolic labels and as many comments as you wish." So I still don't know how the labels are separated from text. You could follow the lead of VisualBasic or QuickBasic from the early 90's. If you have a label then you essentially have a logical "subroutine." So you create a command called "Sub" followed by the name. The subroutine is then ended with "End sub" So you get something like: SUB Average A = B + C: A = A / 2 END SUB Of course if you want to go the full QuickBasic/VB route then you can also have functions: FUNCTION Average(B,C) Average = (B + C) / 2 END FUNCTION Alternatively a label could be considered any non-recognized keyword at the start of a line followed immediately by a colon. That's what QuickBasic did when you wanted to use a label and do an ugly "goto" within a function or subroutine. Regards, Craig Steiner |