I. incremental Query
// 1. Define the user event ue_enchange in the single-line editor. The event ID is pbm_enchange. This event can respond to keyboard input.// 2. Write the following script in the ue_enchange event of the single-line editor:
Q: I want to make the applicationProgramThe main window is automatically displayed in the center of the screen regardless of the screen resolution and operating system version. What should I do?
A: It's too easy ......
Principle: use the
Application in PowerBuilderProgramDuring the development process, when using datawindow, we often encounter a situation where the data of a column is too long to be displayed at the same time. if Automatic horizontal scrolling is used, it is not
Function: triggers the specified event of the specified object and immediately executes the script in the event. Note the difference between this function and postevent. Postevent is not executed immediately, and triggerevent is the script that
/*************************************** * *********************** Funtion getitemany (datawindow ids_ds, long al_row, string as_column) * parameter: datawindow ids_ds by value * long al_rowby value * string as_columnby value * return value type:
First, it is not difficult for someone to implement this function. Just add a circular value assignment.
For example, if you want to realize that the text value of flag comes from the value in the AA field, you will immediately write thisCode:
Data Types: eight basic categoriesOperators: calculate the value ratio to determine whether the value is true or falseStream Control: Two-choice, three-cycle stream jump function for calling
Note:
The data types mainly include Boolean char byte
Event trigger time and Sequence
Open the form: Open (form) → Load (form) → Resize (form) → Activate (form) → Current (form) → Enter (the first control with Focus) → GotFocus (the first control with Focus)
Close the form: Exit (Control) → LostFocus
When using code to trigger an event, you can use the triggerevent ()/Postevent () function ()
When a custom event with parameters is triggered, it is best to do the following:
Syntax:
Objectname. {trigger | post} {static | dynamic} EVENT
POWERBULIDER allows you to use special ASCII characters in strings. font size (~) Special characters are introduced in POWEBULIDER. The following table lists how to introduce specified ASCII characters in PB.
String
Generated ASCII
Right-click an object to bring up a function menu, which is an indispensable function of Windows applications. In PowerBuilderIn application development, you can call the Popmenu () method of the context menu object in the rbuttondown event. However,
Function: Retrieves data for datawindow or datastore. Before using this function, you should have executed settransobject or settrans, and SET transaction objects for the data window. Before executing the function, clear the existing data in the
My XP system, both in the company and at home. IE8 is always quite good, but Netease often watched the NBA text live broadcast last year. The flash live broadcast seems to have a major bug. An error message will pop up during the live broadcast,
Implementation: usage of synchronous selection (checkboxes) of treeview
1. When a parent node is selected, all child nodes have been selected
2. When a child node is not selected, the parent node can be selected
I have summarized the checkboxes
The Getchild function is mainly used to obtain the child data window of a data window. This function can be used in two cases,
1. Retrieve the drop-down data window of the data window object;
2. Retrieve the child data window objects embedded in the
//-----------------------------------------------------------------
// Function: Clear all files in the specified folder (all files in the specified path)
// Parameters:
// String as_filepath: Specifies the path
// ListBox lb_file: drop-down combo
The habit of reading books has never been interrupted since I went to school. Today I think that simple activities are very different. When reading a book, someone can see the following items. Some people can only understand the meaning of the text.
1. var 2. path: string 3. begin 4. path: = ''; 5. try 6. mkdir (path); 7. T 8. showmessage ('canonicalnot create this path! '); 9. end; 10. end; 11. // can the above Code catch mkdir errors? The answer is yes. The following can also be
The downloaded jigloo plug-in is not displayed in eclipse because the plug-in buffer of eclipse3 is limited and needs to be reconfigured.
The main method is to delete the files in the eclipse/configuration folder. Note that the content in the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service