1. PowerBuilder IntroductionPowerBuilder was a leader in the rapid development platform for Management software in the 1990 's, and was suitable for developing client/server architecture applications based on relational databases. Based on its patented DataWindow technology, PB Development database management software is more than 10 times times more efficient than other development platforms, and its advanced compilers make the program run fast.After
Four buffers of DataWindow
In PowerBuilder, DataWindow is the object that the user front-end uses to store and manipulate data. In each DataWindow object, 4 two-dimensional tables are used as data buffers to store the data that is queried. In the DataWindow, the operation of the data processing system in the user is actually the modification and movement of it in these buffers, finally, when the user submits the database, the system forms the SQL in-
/x-www-form-urlencodedcontent-length:lengththeipaddress=stringContent-length, this parameter is ignored, attaching host to post corresponding/webservices/.... Before, and at the top of the Add http://, call Of_set_contenttype to set the parameter value of the Content-type,of_add_form setting theipaddress, the calling code is as follows.1 n_pbfunc_http lnv_http2Lnv_http.of_clear ()//Empty Parameters3Lnv_http.of_set_url ("http://www.webxml.com.cn/WebServices/IpAddressSearchWebService.asmx/getCount
function directly to convert the4) All right, get a window, get a button, write the code in the button.N_internetresult N_irinet Inet_baseString ls_url = ' http://www.google.com 'Inet_base. GetURL (Ls_url, N_ir)MessageBox (' www.google.com:html ', n_ir.is_data)5) You can run it.5, very important, must be clarified some of the rules1) inet can not get more than 65535 of the source code, it will be directly truncated it, very gloom it.2) Some sites will determine the browser, you will not be able
Recently, the ghost had the idea of jdbc, because it was necessary to integrate the oracle driver into the software.
This is a common problem, but I am not prepared to solve it in a common way.
The common method is to get a "simplified" oracle client (you need to write the Registry) or directly connect to the client from oracle (you need to configure the tnsname file)
Or simply integrate the oracle odbc driver (requires registration and configuration)
I used
1. Error hintsHeterogeneous queries require that you set the ANSI_NULLS and ANSI_WARNINGS options for the connection. This ensures consistent query semantics. Enable these options, and then re-issue your query2. Occurrence sceneThe application is using the PowerBuilder development environment and the background is Sqlserver2005. Create a stored procedure in the database to compute complex data and return a result set. The point is that this stored pro
Who has video tutorials or learning materials about PowerBuilder? ------ Solution ------------------ download. csdn. netdetaila821685063369154 this is a simple usage I have prepared by myself. let's take a look at it. ------ solution ------------------ discuss d PowerBuilder
Who has video tutorials or learning materials for this?
------ Solution --------------------
Http://download.csdn.net/detail/A821
Using the Pbfunc tool to parse JSON in PowerBuilder, you only need to call the getattribute method to get
Parsing JSON in Unicode format:
N_pbfunc_json lnv_jsonlnv_json.of_parse ('{"test3": "\u6735\u6735\u8d1d\u8d1d\u5a74\u513f\ u978b "}")string ls_vallnv_json.getattribute ("test3 ", Ls_val)Ls_val back for Dora baby shoes
Parsing nested JSON
N_pbfunc_json Lnv_jsonlnv_json.of_parse ('{"Test1": 122.9, "test2": 34422, "test3
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 space.
2. datastore inserts rows (insertrow () at a speed of only 1% of DW
When findfirstfile is used, findnextfile puts the file information into a large array. However, after use. Even if you manually
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
Preparations1. Add an application and a new window.2. Add an ole control in the window: Microsoft Web browser, named old_1.3. added a textbox URL input control named sle_url and its initial value is C: \ temp \ index.html.4. added a button control named cb_go and clicked.CodeAs follows:
Ole_1.object.navigate (sle_url.text)
5. added the file c: \ temp \ index.html with the following content:
Script Language = "JavaScript" > Function Sayhello (MSG) {alert (MSG );} Script > This is
PowerBuilder prevents decompilation: pbkiller cannot parse the Longlong type and the error is a mess.
Pbkiller2.5.18 cannot parse the Longlong type. Once you declare that the Longlong type cannot be decompiled, the value is incorrect because Longlong uses a pointer-like method to store the value.
As long as you write in the Code as follows:
Int AAA = 100Long BBB = 1000Longlong CCC = 20000Boolean DDD = falseDatawindow dwx
AAA = 2-3Bbb = 1-2CCC = (AAA
;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
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.