The very first plugin for Servoy now reached it’s 5th revision. Slightly improved the examples and added encryption and decryption classes
Have fun with it
The tools plugin now holds the following FOURTEEN functions:
ENCRYPTION
-
encrypt
Java DES encrypt a string with an optional user key -
decrypt
Decrypt a string previously encrypted with the above function
CALCULATION
-
getMaxDay
returns the last day of the given month. -
getIT2Be
returns my name, email and GSM
(STRING) FORMATTING
-
dateFormat
very much like the Java dateFormat class to convert a date to a string and the other way around with (or without) a formatting string. -
numberFormat
formats the (localized) number to the formatString. -
secondsFormat
to make a number of seconds a string and the other way around. formatting like HH:mm:ss.
VALIDATION
-
isEmail
based on a method I posted earlier on this forum now available in this plugin. It takes a string with one or more email adresses and checks if the format is correct. -
isExpired
takes a year, month and (optional) day and returns a boolean when expired. Can be used to check the expiration date of a credit card. -
isInteger
returns a boolean value, checks a string. -
isInRange
takes dates, numbers/integers and strings and returns true or false.
- dates: dates need to be set with new Date() not a db timestamp
- string: there is an option to be set to true if you want to ignore cases
-
isModulus10
takes a string, filters all numbers and tells you the result of a modulus10 check. Can be used to check a credit card number. -
isNumber
returns a boolean value after checking a string.
- localized but will return false when you input thousand seperators.
- isTextOnly
takes a string and returns false if it finds numbers.
The result is attached. Just drop it in your plugins folder and restart Servoy.
REMARK: When you missed version 4 please read the remarks about the old version.
Feel free to use it and distribute it but give me credit for it.
The plugin is free, provided M-^Qas isM-^R and I can not take any responsibility for the way it behaves or works
Any suggestions? Please let me know!
Any bugs? Please tell me!
Any new features needed? Please ask me?
Any questions? I don’t know if we are allowed to use this forum for it but for now: Ask me!
Happpy? Don’t hesitate to share it with me…
Cheers