Code: Select all
0 =-1,8454143, ●Code: Select all
pos = FindString(PreferenceKeyValue(), ",")
If pos
	pos2 = FindString(PreferenceKeyValue(), ",", pos + 1)
	If pos2
		\FrontColor = Mid(PreferenceKeyValue(), 1, pos - 1)
		 \BackColor = Mid(PreferenceKeyValue(), pos + 1, pos2 - pos - 1)
		\Text$ = Mid(PreferenceKeyValue(), pos2 + 1)
; 		If we don't find two commas, then we don't add it. That is, we also check the validity of the data
	EndIf
EndIfCode: Select all
str$ = "-1,8454143, ●"
pos = FindString(str$, ",")
If pos
	pos2 = FindString(str$, ",", pos + 1)
	If pos2
		Debug  "pos = " + Str(pos) + "," + Str(pos2)
		Debug Mid(str$, 1, pos - 1)
		Debug Mid(str$, pos + 1, pos2 - pos - 1)
		Debug Mid(str$, pos2 + 1)
		; If we don't find two commas, then we don't add it. That is, we also check the validity of the data
	EndIf
EndIf
