NotProfessional
Programmer
First of all, hello, I just started to use Clarion 6.3. so I'm not very good at it. I just want to know how to make a Window act like a Update Form, specificaly a Change. Thx.
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.
CLEAR(FIL:Record)
GlobalRequest = InsertRecord
MyWindowProcedure
IF GlobalResponse = RequestCompleted
!row added
ELSE
END
CLEAR(FIL:Record)
FIL:ID = 11
GET(MyFile, MyPrimaryKey)
GlobalRequest = ChangeRecord
MyWindowProcedure
IF GlobalResponse = RequestCompleted
!row changed
ELSE
END
CLEAR(USR:Record)
USR:Name = GLO:User
GET(USER_PROFILE, USR:K_USER)
IF ERRORCODE()
!... handle error ...
SELECT(?MenuItem) ; CYCLE
ELSE
GlobalRequest = ChangeRecord
END
CLEAR(USR:Record)
USR:Name = GLO:User
IF Access:USER_PROFILE.Fetch(USR:K_USER)
!... handle error ...
RETURN LEVEL:Fatal
ELSE
SELF.Request = ChangeRecord
SELF.OriginalRequest = ChangeRecord
END