TheLazyPig
Programmer
Hi!
How can I change Lastname;Firstname;mi to Lastname, Firstname mi?
Thanks in advance.
How can I change Lastname;Firstname;mi to Lastname, Firstname mi?
Thanks in advance.
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.
m.lcMyString = "Lastname;Firstname;mi"
m.lcNewString = STRTRAN(strtran(m.lcMyString,";",",",1,1),";"," ")
m.lcMyString = "Lastname;Firstname;mi"
m.lcLastname = getwordnum(m.lcmystring,1,";")
m.lcFirstname = getwordnum(m.lcmystring,2,";")
m.lcMI = getwordnum(m.lcmystring,3,";")
m.lcNewString = alltrim(m.lcLastname)+", "+alltrim(m.lcFirstname)+" "+alltrim(m.lcMi)
handle = SQLConnect("Oracle")
If handle<0
AErrorr(larror)
? 'Error: '+ laError(2)
Else
If SQLExec(hande,'SELECT * FROM table','Result')>0 && whatever Oracle query you need
Select Result
Browse
Endif
Endif