Returns a string of spaces. The number returned is set by HowMany.
AsciiCodesAsString
Returns a String with all the 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.
DialogResponseAsString
Returns the last response from MsgBox2 selection. It differs from B4A in that the Text of the buttons will be returned. If you set the buttons to: [Yes] [Cancel] [No], it will return: Yes, Cancel or No, just like the text labels In the buttons.
Example: Dim MyAnswer = MsgBox2("Delete File?", "WARNING", "Yes", "No", "", Null) As String
If you press the Yes button, MyAnswer will = "Yes"
If MyAnswer = "Yes" Then 'Delete File Here... End If
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.
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")
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)
Initialize (ParentAsForm) AsString
Initializes the object for use. Pass the name of the Parent form, like: SF.Initialize(MainForm1).
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.
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!"