From: http://www.cnblogs.com/powerbuilder/archive/2012/03/11/2391128.html
The data window of the Grid type in PB is the most widely used type. Features: quick creation and easy location adjustment. After running, you can adjust the column width conveniently, column location, the most efficient operation.
However, the line color of the data window type is fixed and cannot be changed (you can modify the memory data through APIS or third-party controls)
According to the Message response method, the window is divided into two categories: Mode window and mode window. In the mode window
Before the operation is completed, you cannot enter another window to perform other operations. Used by the user to confirm important messages
You must provide feedback before continuing other operations, such as the error Prompt window. Non-mode windows are different.
You can open multiple instances at the same time and switch to any instance at any time. The most
(), ' HHMMSSF '), 1)) * 256/10,0)Of course, you can not only change the background color, but also can change the font and so on any property, so that he can move up!4.make the selected row in the Data window look betterAs you all know, when you select a row in the Data window, if you use PB-provided selection function SelectRow (), then the appearance is really not flattering, monotonous and traditional blue background, may be incompatible with your
PB Experience 4-dynamically change the WHERE clause of the DWIn the use of the filter for DW, it is mentioned that if the retrieval condition factor is not fixed, you can use the method of dynamically changing the WHERE clause of the DW.The implementation of this method is this, do a no parameter DW, in the program, The SQL syntax of the DW object is obtained first through DW.OBJECT.DATAWINDOW.TABLE.SELECT, and the SQL syntax can be split into the sel
Pb (PowerBuilder) The reason for the great achievements is that there are DataWindow objects, DataWindow is a powerful and flexible features, I used PowerBuilder development after a period of time, summed up some skills, For the vast number of PB developers to use for reference.
A How to create a report, as the following form
Quantity Running Total
5,000 5,000
2,500 7,500
3,000 10,500
12,000 22,500
F
1 Preface
In the practical application, for some large-scale application system, the application business logic is quite complex, if the application system adopts the traditional client/server architecture, the business logic is too centralized and the client, will overload the client. In addition, once some business logic changes, all client applications must be changed, which will lead to the difficulty of application distribution, an effective solution is to apply the logical structure of th
1> Generating KeysSn-k F:\CharacterSetConvert\CharSetUtil\CharSetUtilAilic.snk2> compile CharSet.cs build DLL library fileCsc/t:library/keyfile:ailic.snk/out:charsetutil.dll CharSet.cs3> enters Framwork's current directory, executes the regasm command, and registers the library file. Note In the command, specify a specific processing path to the fileRegAsm C:\windows\system32\charsetutil.dll/tlb:c:\windows\system32\charsetutil.tlb/codebaseDeveloping COM components that can be called by
Example: A window passed to b window yA window:Define the parameter name and assign a value of string s_parm s_parm=username+ '% ' +password, then Openwithparm (w_main,s_parm), W_main for the jump to the window, s_parm for us to pass over the parameters.b window:Defines the variable string s_username,s_password,s_parm to receive,S_parm=message.stringparmI_pos=pos (s_parm, '% ')S_username=left (s_parm,i_pos-1)S_password=right (S_parm,len (s_parm)-i_pos)Delivery is complete.To pass parameters betw
PB gird data window: group, group subtotal, total, and gird data window
Today, we have a requirement. The gird table data is as follows:
Department
Type
Data
A
Type 1
1
A
Type 2
2
B
Type 1
3
B
Type 2
4
Total
10
The actual result is as follows:
Department
Type
Data
A
Type 1
1
A
Type 2
2
Subtot
'), 1)) * 256/10,0)Of course, you can not only change the background color, but also can change the font and so on any property, so that he can move up!4 Make the selected row in the Data window look betterAs you all know, when you select a row in the Data window, if you use PB-provided selection function SelectRow (), then the appearance is really not flattering, monotonous and traditional blue background, may be incompatible with your beautiful and
the minimum cost of forming a two-fork tree is solved by the tree with each vertex as its root. Then find the minimum value output. The principle of finding the minimum cost is to read the note! The bottom is someone else's code, know the logic code is easy to understand.#include #include #include using namespace STD; vectorint>e[1010];intN, Res, d[1010];//The key point of the topic lies in the non-direction of the five-ring diagram, the title of the figure no outliersvoidDFS (intAintPAR) {//An
PowerBuilder is recognized as one of the best Database Front-end development tools. However, PB is monotonous in user interface processing for a long time. The most obvious example is, all window controls do not support transparent colors, that is, transparent. In versions earlier than PowerBuilder 7, the progress bar is not provided, so most programmers always use two Rectangle controls in the program to program the progress. In this way, the Progres
The Yield () function isIt is a very useful function in PB program control. If you can use it properly, it will certainly make your program more user-friendly.
The Yield () function transfers control to other graphical objects, including non-PowerBuilder objects. This function detects message queues. If there is a message, the message is taken out.
This function returns a Boolean value. If a message is extracted from the message queue, the function re
supporting files listed above must be copied to the application directory or system directory. You can flexibly decide based on your situation. Before publishing an application, to determine which dynamic link libraries are required, a feasible and reliable method is as follows:
Table 2: dedicated interfaces used by data libraries in Windows
Data warehouse management process (PB) Specialized Access File INFORMIX 5. xPBIN560.DLLINFORMIX 6.x/ 7. xPBIN7
predefined functions.
---- Define a function in PB, for example, window function:
Wf_barprint (long job, integer x_pos,Integer y_pos, bar_width as intger, string code)Returns integer// X_pos and y_pos are the start position of bar code printing.// Bar_Width: the width of the narrow bar code.// Code, the string to be printed
Char Bar_Card [20], Bar_Print [22]Char Temp_Card [12]String Bar_Table [40]Int I, j, X_Scan, Cal_Card, y_scan
X_scan = x_posY_sca
Drag a Microsoft Web Browser in the window to adjust the size.
View the properties, methods, and events supported by PB Object Browser. The main usage is as follows:1. Navigate (string url)2. ExecWB (n1_id, nCmdExecOpt, [pvaIn], [pvaOut])
Next we will use the code to implement a program that opens a webpage, pops up another store, and then prints it directly.
Ole_1.object.Navigate (sle_1.text)
// The documentcomplete Event code of the Ole Control
I have seen some petabytes of data on the Internet, and VB's friends have a lot of time to get the IP address. So I found some information on the Internet, modified it into a convenient dll library for calling, and supported multiple NICs, let Pb and VB use a function call. Haha.Note: pb10 and above are added as follows: alias"Foo; ANSI"
:Http://www.cnblogs.com/Files/SummerHeart/GetIP.rar
PS: the dynamic library has been updated. I am very grateful
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.