Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / 2 q's in one day.. Passing values to sub routins...

Author
Message
Colin Hart
21
Years of Service
User Offline
Joined: 28th Apr 2003
Location: United Kingdom
Posted: 10th Aug 2004 00:05
Appologies for the basic question...

is it possible to pass a value to a sub routine..

see example.....

thanks for the helps people...

Colin.
jasuk70
21
Years of Service
User Offline
Joined: 3rd Dec 2002
Location: Hemel Hempstead
Posted: 10th Aug 2004 00:42
If this is DBPro, you can pass values into functions. If classic, I don't know as I dont have classic.

Jas

----
"What is this talk of 'release'? Klingons do not'release' software. It escapes leaving a bloody trail of developers and quality assurance people in its wake!"
Kentaree
22
Years of Service
User Offline
Joined: 5th Oct 2002
Location: Clonmel, Ireland
Posted: 10th Aug 2004 00:48
Yes, like jasuk70 said, you'd use a function for that, in either DBC or DBP. However, you can also have subroutines, which can access most variables anyway without you having to pass them in.

A function:



A subroutine:



AMD Athlon XP2800+
GeForce FX5200 128MB
1024MB DDR 333MHz RAM

Login to post a reply

Server time is: 2024-11-27 04:29:48
Your offset time is: 2024-11-27 04:29:48