General information
Category:
Coding, syntax & commands
Title:
VFP equivlants of VBScript
I was just wondering if anyone knew of the equivilants of some functions in VBScript. They are:
split(string,constant) - This will split a text string into an array where the constant appears. like this example
Dim MyString, MyArray, Msg
MyString = "VBScriptXisXfun!"
MyArray = Split(MyString, "X")
' MyArray(0) contains "VBScript"
' MyArray(1) contains "is"
' MyArray(2) contains "fun!"
The other is...
filter(stringarray, value) - This will create an array with elements from the string array containing value. For example
Dim MyIndex
Dim MyArray (3)
MyArray(0) = "Sunday"
MyArray(1) = "Monday"
MyArray(2) = "Tuesday"
MyIndex = Filter(MyArray, "Mon")
' MyIndex(0) contains "Monday"
So, if anyone knew any quick VFP equivilants for these functions let me know.
Thanks in advance
Eric
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only