Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
REPLACE ALL First WITH DlimitField(Name,1),;
Last WITH DlimitField(Name,2)
FUNCTION DlimitField(lcName,lnCounter)
LOCAL lnFlds, laFlds[1]
LOCAL lcRetVal
lnFlds = ALINES(laFlds,lcName,1+2,[,])
IF m.lnFlds < m.lnCounter
lcRetVal = []
ELSE
lcRetVal = laFlds[m.lnCounter]
ENDIF
RETURN m.lcRetVal
[COLOR=blue]REPL TABLENAME.firstname WITH LEFT(TABLENAME.fieldname,AT([,],TABLENAME.fieldname) - 1),;
[tab]TABLENAME.lastname WITH SUBSTR(TABLENAME.fieldname,AT([,],TABLENAME.fieldname) + 1);
[tab]ALL IN TABLENAME[/color]
[COLOR=blue]REPL TABLENAME.lastname WITH LEFT(TABLENAME.fieldname,AT([,],TABLENAME.fieldname) - 1),;
TABLENAME.firstname WITH SUBSTR(TABLENAME.fieldname,AT([,],TABLENAME.fieldname) + 1);
ALL IN TABLENAME[/color]