![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have a large TAS application that I've inherited (DOS). Which is basically btrieve. I'm new to the btrieve front, and it seems pretty late as well. I'm trying to understand the flow of the code.. I know there exists 1. Function's 2. CMD's 3 Library routine's Functions seem pretty obvious, they execute and return a value.. or not. CMD's cannot return a value, but can take input params Lib Routines are defined with : and end with :: and can have a cmd/ func in it. not sure the significance.. it seems everything runs in global scope... My biggest issue is variable passing. when calling a function or cmd you can pass variables. If altered in the function, are they altered externally? Also with goto and gosub, do they allow variable alteration and what is the difference with the return? Any help would be great? I mainly need to clarify if variables are passed by reference or not. and what sort of scope the local functions have. Thanks, -Chris |
![]() |
| Thread Tools | |
| Display Modes | |
| |