[quote=312840:@Michel Bujardet]If the string always has , as separator, you can use NthField.
Also, I don’t know what you mean by “breaking up the string”, but with a string such as “Field1, Field2, Field3, Field4, Field5” you can do this to obtain an F array :
dim F() as String = split(s, ",")
If I did not understand what you are after, simply disregard.[/quote]
Hello Michel, by using your method, I still could not get the result of “Apple”.
[code] Dim s() As String = Split(“Field1, Field2, Field3, Field4, Field5”, “,”)
MsgBox s(0)[/code]
I am expecting a value of “Apple” but it is returning “Field1”.
[quote=312844:@Simon Berridge]I think the OP is asking to be able to access a field known as “Field1”, rather like the database call:
dim st as string = RECORDSET.Field("FIELD1").StringValue
or
RECORDSET.Field("FIELD1").StringValue = st
I suspect that introspection is what he needs but I am really unfamiliar with this aspect of Xojo so will not offer any advice - I’ll leave that to better experts than me![/quote]
Hello Simon, Field1 is refering to a Variable. I did look into introspection, but seems like it can only return the data types but not the value of the passing parameters. I hope I am wrong.