Powerbuilder beginner concept 20

zhaozj2021-02-11  232

First, the timing used by PBR?

1. If you use the resource dynamic specified to Object or Control Property, you must use PBR.

2. If you use PBR to reduce the number of files required for EXE file issuance

3, let many applications use common library

Second, how to integrate BMP, ICO, DataWindow resources into PBD?

Use PBR (resource index file) to integrate its resource into the PBD file as follows:

XXXX.PBL

Xxxx.bmp

Xxxx.ico

If your script is so p_roller.picturename = "c: / rollwe.bmp"

Then you need to add this narrative into the PBR

C: / ROLLWE.BMP

Third, how to update the DataWindow data on multiple TABLE?

Set and modify DataWindow's Update Table and Update Column

Fourth, the error message exceeds the Script line number?

Maybe forget to join END IF or End Choose

5. What happens in Chinese character?

Modify PBTY050.DLL scrabble, or download the correction program to http://www.eur.com.tw

Sixth, Chinese and English input method for switching?

Function Boolean Immsimulatehotkey (unsignedlong hwnd,

UNSINGEDLONG DWHOTKEYID) Library "Imm32.dll"

Function unsignedlong getKeyboardLayout (unsignedLongwLayout) library

User32.dll "

Function Boolean Immisime (Unsignedlong HKLKeyboardLayout) library "IMM3

2.DLL "

English input method

Constant Int IME_THOTKEY_IME_NONIME_TOGGLE = 112

Uint hklcurrent

Unsignedlong HND

HKLCurrent = getKeyboardLayout (0)

IF immisime (hklcurrent) THEN

HND = Handle (PARENT)

Immsimulatehotkey (HND, IME_THOTKEY_IME_NONIME_TOGGLE)

END IF

Chinese input method

Constant Int IME_THOTKEY_IME_NONIME_TOGGLE = 112

Uint hklcurrent

Unsignedlong HND

HKLCurrent = getKeyboardLayout (0)

IF not immisime (hklcurrent) THEN

HND = Handle (PARENT)

Immsimulatehotkey (HND, IME_THOTKEY_IME_NONIME_TOGGLE)

END IF

Seven, when DataWindow's column is archived, if you want to design a prohibited operator to enter the column input

, How to design?

Press Right-click on the DataWindow's column to enter Properties in Expressions

PROTECT is set to IF (isRownew (), 0, 1)

Eight, when using inherit windows, some Window Object does not need to perform ancestor Event

What should I do?

In the EVENT of Window's Object, in the Design drop-down window, there are four script settings to the third

Item 3.Override AnceStor Script To close the ancestral program, only execute the current program

Nine, there is a setting visible tab in the Object's Properties, I will pick it upon design needs

Emerge to see Object can't see, but now you want to recover, how do you make? This object has visually invisible Object after canceling the visible, if you want to restore, please remove the edit, Control List, to put Object's Pro

Perties pulls out

10, PowerBuilder is raised by version 5.0 to 5.0.03, when using the SQL Central Tool,

I hope to see Stored Procedure, press Right-click, select Open, will appear "The job executed by this program is invalid

, Is about to close. "

Program bug in PowerBuilder 5.0.03, reply to the Scview.exe file file.

Ele 1, how to control the user when the user can automatically generate continuous numbers when entering the information?

When defining the Table field, there is a AutoInCrement option in its default value (last column) setting, ie

A continuous number will be automatically generated.

Twelve, how to transfer a number between the window?

PowerBuilder provides three functions to achieve this:

1.OpenwithParm ()

2.opensheetwithparm ()

3.Closewithreturn ()

When these functions are called in the program, the numbers transmitted from the window will be placed in the Message object.

The number of 叁 叁 叁 can be obtained from the properties of Message.

13. What is the difference between ?

: Yes, any Window can be used

: Suitable for single Window

: Suitable for single Object

14. How do I read Data Data Data?

1. Take PowerBar's Pipline (PIPLINE for Painter Bar)

2. Select New

3. Select Source Connection and Descination Connection under Quick Select

4. Select Tables and Columns

Fifteen, what is embedd (Import) Excial? How to exchange and remit?

1. Infit (Import) Remittance:

Import is used to make Power Builders to read other software information, export is just the opposite

2. How to exchange and exchange:

Select Import from the ROWS menu, Select Import File Windows; Specify the information you want to enter

In the file name, choose OK!

16, Differences in the three?

: Store the user can see

: The information stored in the information window

: Store information deleted by the user through program code

If we define a Filter for the information window, the filtered information is transferred in Filter BUF.

In FER, the user cannot modify these information, and when the data is re-deposited into the database

Keep unchanged, when you start, first filter out unqualified information, its information is stored in Primar

In y Buffer, users can provide for Primary Bu through the information window control.

The information in the ffer will operate. If a column is deleted, it is moved from Primary Buffer to D.

Elete buffer, users can't see it in the information window, when the call update function

When writing the data into the database, the data in the Primary Buffer is written back to the hard disk, and the data in the delete buffer is plugged back into the repository or directly deleted.

Seventeen, what is the Transaction Object?

When Application starts executing, it will create a global transaction (SQLCA),

When using the program, it will automatically DESTROY, including: DBMS, DATA

Base Name, Login ID, Password, Sqlcode, Logpass, ServerName .....

Before connecting to the database, you must first make the transaction object initial, if Application makes

Use the same DBMS, and the database uses the same Database Name, you can use the same transacti

On Object, if you use two different databases in Application, you need another TRANSA.

CTION Object to access the second database.

Eighteen, when DBFILE goes to another PC, how can the database cannot be connected?

Look for where dblog.exe is located, and then switch to the path in DOS mode, such as: CD / SQLA

NY50 / WIN32,

Perform dblog-t / path / logfilename / path / dbfilename.

XII, because I have to make the statement of the statement, the length of the information is very short, I hope to be on the same page.

Show results in a multi-column, can this method of reporting the PB?

Set the most in the Edit / Properties / Print Specification in Data Window or Report

There are newspaper columns below, ie settings the number of fields and field width displayed.

Twenty, how to add a title in the GRID type Data window and Report without the grid?

In the HEADER area, add a "Text Object" in its Properties, to position /

Layer Select "Forground", go to Font / Background, specified as white (or other color, non-TR)

Ansparent can be), this text object is movable and adjustable, as long as the pull is opened to the foot

Take the area of ​​the entire header.

转载请注明原文地址:https://www.9cbs.com/read-3693.html

New Post(0)