BCDEF

Top  Previous  Next

Action

Defines a subroutine name and it’s parameters in BASCOM so it can be called in the BasicCard.

 

 

Syntax

BCDEF name([param1 , paramn])

 

 

Remarks

name

The name of the procedure. It may be different than the name of the procedure in the BasicCard but it is advised to use the same names.

Param1

Optional you might want to pass parameters. For each parameter you pass, you must specify the data type. Supported data types are byte, Integer, Word, Long, Single and String

 

noticeThis statements uses BCCARD.LIB, a library that is available separately from MCS Electronics.

 

 

BCDEF Calc(string)

 

Would define a name ‘Calc’ with one string parameter.

When you use strings, it must be the last parameter passed.

 

BCDEF name(byte,string)

 

BCDEF does not generate any code. It only informs the compiler about the data types of the passed parameters.

 

 

See Also

CONFIG BCCARD , BCCALL , BCRESET

 

 

Partial Example

Bcdef Calc(string)