Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Pervasive/Btrieve/ TAS Professional Variable passing

13 views
Skip to first unread message

Charles

unread,
Aug 7, 2010, 11:43:26 PM8/7/10
to
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


BtrieveBill

unread,
Aug 8, 2010, 2:05:20 PM8/8/10
to
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.

0 new messages