Without syntax details.
Myarray() = name.split(",")
Newnname = MyArray(1) + " " + MyArray(0)
This may have been covered previously, but I can't seem to find it. I've got a Flash-based certificate on a Moodle LMS. The cert pulls the student's name using cmi.core.student_name. It works just fine, but the name is pushed out as 'Last Name, First Name'. Is there a simple way to flip the name so it shows 'First Name, Last Name'? Thanks!
--
You received this message because you are subscribed to the Google Groups "eLearning Technology and Development" group.
To view this discussion on the web visit https://groups.google.com/d/msg/elearning-technology-and-development/-/zc0knCH5hrcJ.
To post to this group, send email to elearning-technolo...@googlegroups.com.
To unsubscribe from this group, send email to elearning-technology-and...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/elearning-technology-and-development?hl=en.
This may have been covered previously, but I can't seem to find it. I've got a Flash-based certificate on a Moodle LMS. The cert pulls the student's name using cmi.core.student_name. It works just fine, but the name is pushed out as 'Last Name, First Name'. Is there a simple way to flip the name so it shows 'First Name, Last Name'? Thanks!
--
Here’s a function I use:
function getName()
{
var locComma = sUserName.indexOf(",")
var learnerLen = sUserName.length
sUserLast = sUserName.substring(0,locComma)
sUserFirst = sUserName.substring(locComma + 2,learnerLen)
sUserName = sUserFirst + " " + sUserLast
}
sUserName initially holds the value returned by GetValue(“cmi.core.student_name”)
Raymond Sugel Sr![]()
eLearning Consultant
224-293-4135 (O)
847-370-6163 (C)
rsug...@pivotpointelearning.com
www.pivotpointelearning.com
--