Intrinsic Conversions
Username:  
Password:
  > Home
> User Guide
v Reference
    > Introduction
    > CROFT
    v BEE Variables
       > BEE Variable Name
       o BEE Variable Value
       v BEE Conversions
          o Intrinsic Conversions
          o User-defined Conversions
          o To string or not to string
    > BEE Syntax
    > BEE Commands
    > Database Operation
    > Content Management
    > Objects and Classes
    > Interface with others
    o Glossary
> Portal Object
> Development Guide


Shortcuts
sys Class
debug Class
Intrinsic Conversions
>> Reference >> BEE Variables >> BEE Conversions >> Intrinsic Conversions <=  =>      <  1  2  3  4  5  6  >  
+ to e Conversions built into BEE

Conversion

Input Type

Output Type

Description

++

String

String

Increase the input string by one numerically.

This input string is passed by reference.  It must be either a variable as in:

var i conv="++";

or a value casted as a variable as in:

var j = "(var)i" conv="++";

+=

String

String

Increase the input string by the number in the argument string numerically.

This input string is passed by reference.  It must be either a variable as in:

var i conv="+=:3";

or a value casted as a variable as in:

var j = "(var)i" conv="+=:3";

--

String

String

Decrease the input string by one numerically.

This input string is passed by reference.  It must be either a variable as in:

var i conv="--";

or a value casted as a variable as in:

var j = "(var)i" conv="--";

-=

String

String

Decrease the input string by the number in the argument string numerically.

This input string is passed by reference.  It must be either a variable as in:

var i conv="-=:3";

or a value casted as a variable as in:

var j = "(var)i" conv="-=:3";

?

String

String

Take the argument string as a comma-delimited list of three arguments.  The first argument is a logical expression representing a condition.  If the condition evaluates to true, return the second argument.  Otherwise, return the third one.

Yes, the input argument is ignored.  So you can use the shorthand {|?condition,trueVal,falseVal}.

ana

String

String

Return "an" if the input string starts with a vowel letter (A, E, I, O, U or their lowercase letter) or "a" otherwise.

basename

String

String

Take the input string as a file name with path (directory specification with "/") and return the file name with the path stripped off.

classname

String

String

Take the input string as a class name, but if it happens to be in a variable form, extract only the class name.  Return the class name as such.

concat

String

String

Append the argument string to the input string.

count

Array

String

Return the number of elements in the input array.

countstr

String

String

Return the number of times the argument string occurs in the input string.

countstric

String

String

Return the number of times the argument string occurs in the input string, ignoring case.

countstring

String

String

Same as "countstr"

countstringic

String

String

Same as "countstric"

countstringre

String

String

Same as "countstrre"

countstrre

String

String

Return the number of times the substring that matches the regular expression in the argument string occurs in the input string.

crypt

String

String

Encrypt the input string and return the result.  The argument string specifies the type of encryption: StdDES (default), ExtDES, MD5 and Blowfish.

If the argument string is 13 characters or more, it will be taken as an encrypted string to verify against the input string, and true is return if it is a match or false otherwise.  In this case, the type of encryption can be optionally specified as the second argument.

dec

String

String

Same as "-="

decrease

String

String

Same as "-="

default

String

String

If the input string is false, return the argument string.  Otherwise, return the input string unchanged.

dirname

String

String

Take the input string as a file name with path (directory specification with "/") and return the path with the file name stripped off.

empty

String

String

Return true if  the argument is '0' (literal zero or numeric zero), blank ('') or not defined; return false if otherwise.

escape

String

String

escape:quote or escape:quotes
Add a backslash ('') in front of any single or double quotation marks found in the input string.

escape:single, escape:singlequote or escape:singlequotes
Add a backslash ('') in front of any single quotation marks found in the input string.

escape:double, escape:doublequote or escape:doublequotes
Add a backslash ('') in front of any double quotation marks found in the input string.

 

Previous Page       Next Page

Accsoft Computer Technology Pty Ltd     ABN: 98 065 617 549
PO Box 892, Epping NSW 1710         Level 1, Epping Office Park, 242 Beecroft Rd, Epping NSW 2121, Australia
Tel: Sydney - (02)98691668     National - 1300-881668         Fax: (02)98691866
© Copyright 2003 Accsoft Computer Technology Pty Ltd