Returns a string of spaces. The number returned is set by HowMany.
AsciiCodesAsString
Displays a MessageBox with all Characters and their ASCII codes.
At (YourStringAsString, SearchForAsString) AsInt
Returns the position of the SearchFor within YourString.
CurrentWeek (MyDateAsString) AsInt
Returns the number of the current week, 1-52 from the date passed to MyDate.
DayOfMonth (MyDateAsString) AsInt
Returns the day of the month like 1-31, from the date passed to MyDate.
Decrypt (YourTextAsString) AsString
Converts an encrypted string of text to readable format, no key is needed.
Empty (StringTextAsString) AsBoolean
Test to see if the string is empty and returns True if it is, otherwise returns False.
Encrypt (YourTextAsString) AsString
Converts a string of text to simple encryption, no Key is needed.
EraseDataAsString
This will erase all data saved with the SaveData function stored in the temporary vault.
FileExist (PathAndFileNameAsString) AsBoolean
Returns True if the filename passed does exist, otherwise returns False. Be sure to include the path like:
If FileExist("/mnt/sdcard/mydata.dat") Then MsgBox("Yes", "The Answer")
GetData (KeyAsObject) AsObject
Gets data from the temporary vault.
EditText1.Text = SF.GetData("EnteredName")
The Key is case sensitive.
getSDCardPathAsString
Returns external/physical SD Card directory. This function may not return the correct store on an Android OS above 4.1. This is due to changes made to the OS system in the newer versions. Returns "", if the store can not be read.
This is a single line if conditional test. If Value1 is true, Value2 is returned, otherwise Value3 will be returned. Works with strings and booleans. Example:
MsgBox(iif("Bob"="Jim", "They are the same", "They are not the same"), "The Answer") or MyBoolean = iif(FirstTime = True, StartMyService = True, StartMyService = False)
Returns the numbers of days passed between the two dates passed.
Pad (TextAsString, PadWithAsString, LengthAsInt, PostAsBoolean) AsString
Used to pad a string with a selected character. If Post = True the padding will follow any text in the string, if Post = False, the padding will be before the text. Length is the total length for the padded string. PadWith is the selected character to use for the padding.
Returns a string of ramdom characters with a length specified by StringLength. CharacterType tells the function what type of characters to return. CharacterType = 0 for Upper and Lower case CharacterType = 1 for Upper case only CharacterType = 2 for Lower case only
Rtrim (StringTextAsString) AsString
Returns a new string with the trailing spaces removed.
SaveData (KeyAsObject, DataAsObject) AsString
Save data passed in a temporary file.
SF.SaveData("ScreenTitle", MyVar) or SF.SaveData("EnteredName", EditText1.Text)
ScrInfo (AspectAsString) AsInt
Returns information about the devices screen. You can pass these parameters: Pass "W" for Width Pass "H" for Height Pass "S" for Scale Pass "D" for DPI
Call like: SF.ScrInfo("W")
SDCardPathAsString [read only]
Returns external/physical SD Card directory. This function may not return the correct store on an Android OS above 4.1. This is due to changes made to the OS system in the newer versions. Returns "", if the store can not be read.
Used to replace text in a string with new text. Example:
MyText = "I will tell you that joe is a good friend!" MyText = SF.Stuff(MyText, "Joe Brown", "joe") This function will return: "I will tell you that Joe Brown is a good friend!"
TodayAsString
Returns the devices date.
Trim (TextAsString) AsString
Returns a new string with leading and trailing spaces removed.
Upper (StringTextAsString) AsString
Returns the string converted to Uppercase characters.
Val (StringTextAsString) AsDouble
Returns the numerical value of a string. If the string contains now value it returns 0.
ValidDate (ChkDateAsString) AsBoolean
Returns True if the date passed is a Valid date.
WeekDay (MyDateAsString) AsString
Returns the number of the day of the week 1-7 as a String, from the date passed to MyDate.
WeekName (MyDateAsString) AsString
Returns the name of the day of the week like Sunday, Monday, etc., from the date passed to MyDate.
Year (MyDateAsString) AsString
Returns the year of the date passed in MyDate. Example: