10.07.2015 Views

Programming Guide - Actian

Programming Guide - Actian

Programming Guide - Actian

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

How You Can Invoke FramesThe syntax is:CurFrame.method(parameters)orCurProcedure.method(parameters)methodRefers to one of the four previously mentioned methods. For moreinformation about the parameters available, see the ProcExec system classin the Language Reference <strong>Guide</strong> online help.You also can open Information and Reply pop-ups with the OpenROADmessage and prompt statements. For more information about using thesestatements, see A Simpler Process for Creating Information and Reply Popups(see page 111).To specify the value of a parameter, you must enter the parameter namefollowed by the value. The following example from the video_detail framescript uses the ConfirmPopup method to verify that the user wants to deletethe video. The messagetext parameter specifies the text displayed in thepop-up frame.on click delete_button =beginstatus = CurFrame.ConfirmPopup(messagetext ='You are going to delete this video.');if status != PU_OK thenresume;endif;...ConfirmPopup, ReplyPopup, and FilePopup have return values. You mustspecify a variable of the appropriate type to receive the return value. In theprevious example, the status variable is used to hold the return value.Both the ReplyPopup and FilePopup methods have reply parameters. For theReplyPopup method, this parameter contains a response that the user enters.For the FilePopup method, this parameter contains a file that the user selects.This reply parameter is a reference variable of type StringObject (for moreinformation about the StringObject system class, see Working with Images andText Strings (see page 277)).When you invoke the ReplyPopup or FilePopup method, you can specify thisparameter to display an initial reply in the pop-up frame. For example, withthe FilePopup method you can use the reply parameter to specify a default fileselection. If the user types in a different reply or selects a different file name,the value of the reference variable is updated.110 <strong>Programming</strong> <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!