;if SQLCA. Sqlcode=100 then MessageBox ("Hint", "password Incorrect") Elsemessagebox ("Prompt", "login Successful") End IfEnd IfEnd If(4) write the code for the Exit button, as followsClose the form close (parent) 6. Running the application Save all actions and press the shortcut key ctrl+r. This is not shown here, because we stored in the data table user name and password are "1", so only the user name and password are "1" will be successful.Small message:Our simple login function finally fini
Recently, I have access to Pb and started to use pb10. Later I have access to pb8.
At that time, I really felt that the vs series development platform was the perfect!
But I don't get used to it anymore. I thought it should be a registry problem after suffering from several times of system reinstallation by pb8.
Finally, we found a key value that saved the breakpoint information before pb8 went wrong:
[HKEY_CURRENT_USER \ Software \ Sybase \ PowerBuilder
When using VC + + to write a DLL for PowerBuilder, pay attention to the following 2 points: calling convention
C + + functions have _stdcall, _cdecl, _fastcall, and many other calling conventions, the calling convention is used to describe the order of the stack of function parameters and who (the function itself or the caller) to modify the stack.When you write a DLL for a PB call, you use the _stdcall calling convention, as follows:
extern "C" _dec
/gateway.do? ") +ls_data) Blob lblb_data string ls_error IF lnv_http.of_post (lblb_data,ls_error) Then string Gbkdata gbkdata = Lnv_cry P.OF_UTF8TOGBK (Lblb_data)//Because the return is UTF-8 encoding, the direct display will be garbled MessageBox ("hint", gbkdata+ "" +string (lblb_data)) Else MessageBox (" Prompt ", execution failed") End IF
Where the Wf_alipay_urlencode function code is as follows:
LS_STR is the parameter
n_pbfunc_encode lnv_encode
string ls_content,ls_reserved//ind
PowerBuilder (PB) is a powerful development tool based on client/server architecture launched by PowerSoft Company (has been acquired by Sybase) and has been well received by developers since its inception. DataWindow is a patented technology in PB control, its data processing method is quite concise, data window can handle a variety of display formats, report printing, the same deal with complex nested reports freely.
The processing mechanism of a d
PowerBuilder's Data Window object is its unique intelligent object, its encapsulation is good, the function is formidable, the manifestation form is rich and diverse, for this reason, many MIS developers regard PowerBuilder as the preferred development tool.
Under normal circumstances, a data window can only update a database table, but in the MIS development process, we often encounter this situation: a data window by two or more database tables as
Using JDBC to connect MySQL in PowerBuilderError encountered:Long Ll_count//Profile Mysqlsqlca.dbms = "JDBC" SQLCA. Logpass = "123" SQLCA. Logid = "root" SQLCA. autocommit = Falsesqlca.dbparm = "driver= ' com.mysql.jdbc.Driver ', url= ' jdbc:mysql://localhost:3306/his '" Connect Using Sqlca; Select COUNT (*) Into:ll_count from Yk_cddz;A very simple statement, unexpectedly error!You have a error in your SQL syntax; Check the manual, corresponds to your MySQL server version for the right syntax to
PB is a good development tool for database management systems, but PB is not very useful in Web and computer interface communication. Fortunately, we have Ole and COM technologies that make it easy for us to use the functions of some components
Client|oracle
Client-side approach to installing Oracle
Cantonese Zhongshan Thank you macro
2001/04/03
Objective:
I've seen a lot of people on the Internet asking the client to connect a PB program to an Oracle library by not installing
No matter how many years you have used a tool and how many books you have written, the technology is changing with each passing day. I think everyone is on the starting line.
The most common is for beginners. When they see a new technology, they
The sample file is as follows (without adding a DTD, for example, to describe it)
CopyCode The Code is as follows:
My table structure, I think everyone's tables should be designed in this way.Order (sales order, including
I recently wrote a small software program for searching disks. Two problems are found. In the past, DT and DW were used to process a small number of rows of data. It is difficult to find this problem.
1. the array cannot be used to release
First, the type of window1. Main (main) window2. Popup (pop-up) window3. Child (Children) window4. Response (response) window5. MDI (multiple file interface) windowSecond, the properties of the window1. General tab: Determines the common
Remember, pay attention to three places.1. Open the datawindow window, click the data source icon, and first execute the table pop-up menu deselect all, then execute select all. In column specification of the data window, you can see that the field
When any data window is suddenly opened during use, the following error message is prompted, and then the Pb environment is closed directly:
Solution:
1.ProgramBack up one copy to prevent unexpected events
2. After the Pb is uninstalled, use
Transaction Object
We know that transaction objects play a very important role in the power BUILDER, and the power BUILDER applications must be connected to various databases through transaction objects, so before we discuss the relationship
Today's introduction to how PB connects SQL through a data source1. First to create a new data source, see the previous blog2. Locate oDB ODBC and select New profile3. Fill in the Profile name, select the data source we built, fill in the SQL
sample files are as follows (no DTD, just a simple example)
Copy Code code as follows:
My table structure, I think everyone's table should be designed like this
Order (sales orders, including
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.