dbTalk Databases Forums  

Pervasive/Btrieve/ TAS Professional Variable passing

comp.databases.btrieve comp.databases.btrieve


Discuss Pervasive/Btrieve/ TAS Professional Variable passing in the comp.databases.btrieve forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Charles
 
Posts: n/a

Default Pervasive/Btrieve/ TAS Professional Variable passing - 08-07-2010 , 10:43 PM






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

Reply With Quote
  #2  
Old   
BtrieveBill
 
Posts: n/a

Default Re: Pervasive/Btrieve/ TAS Professional Variable passing - 08-08-2010 , 01:05 PM






Btrieve is a database engine, and TAS is the programming environment.
The two are very different.

What you are looking for is a TAS forum, though since many TAS users
used Btrieve for a database, you might get a hit from someone still
hanging out here. Might not be bad idea, though, to find a different
forum to post this in in the meantime.


On 8/7/2010 10:43 PM, Charles wrote:
Quote:
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


Reply With Quote
Reply




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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.