PFC is definitely a good, very convenient to develop SDK tools for PB developers, but I don't know why everyone knows it, it may be the reason why Sybase has no main push this tool. It is the development library. It seems bloated, the running speed is relatively large decline, I think this may be Sybase without the reasons for this SDK, but for the current requirements of the running speed, it is indeed very good. Not bad. If the run speed requires harsh, it is estimated that it will not develop in PB.
In this document, I combined with PFCExample example, that is, I have already written a detailed code in Pfcexample, everyone directly study it. It is more simple, simpler than PBexample.
How to install it, I will explain it here, I believe that most people know that when installing PB, choose a custom installation, then select Install the PFC.
Hey, write examples are really bitter, stealing slight lazy, there are examples in pfcexample or simple PFC services. I can only look at the example programs, mainly for functioning, I will not be code for some complex services.
1. Calendar control (pfcexample): The calendar control is very excellent control, which supports the PB window, the data window. At the same time, it also provides a holiday control, such as holiday bold display, color change, etc. Wait. If we use it, it is the problem of Chinese, if you want Chinese, basically change some of the code of the DW object and the calendar control, relatively simple.
2. Calculator Control: n_cst_caculator calculator control is a very nice control, usage method and calendar control.
3. Error control: n_cst_error (pfcexample is):
Error control object, is actually packaged and extension to the message window MessageBox of the PB, which can support both the PB built-in message window (ie the MessageBox function), and the message box has been expanded (there is a custom message window) What do it have, I think it is good, mainly I like its good user interactivity, which provides the function of printing the error message on the message window, and allows the user to enter instructions and prompts, then Send to the recipient (software development / maintenance person) via email. This makes it easy to implement remote maintenance and error monitoring.
4. Document service: n_cst_filesrvwin32 (pfcexample): The file service should be used by the more service, it makes up for the PB for many shortcomings in file operations, and there have been some improvements in file operation after PB7, replacing it Some functions, but there are still a lot of features very good. If you don't say it, let's take it!
5. Data window drop-down calculator, drop-down calendar (pfcexample): It is the calendar and calculator service, which supports DataWindow, also supports normal editing controls.
6. Drop-down lookup service n_cst_dwsrv_dropdownsearch (pfcexample): Seeing that many netizens said that the drop-down look is to be dropped, it is in the data window, with the column of DDDW, when entering the letter, the system automatically scrolls the data in the DDDW to the eligible One line, and, the data is filled in this line is very convenient, the call is also very simple, one sentence.
7.DW filter service n_cst_dewsrv_filter (Pfcexample): Provides filtering standard dialog, very excellent. Related classic DW services include: n_cst_dewsrv_sort, providing a variety of filtering and sorting windows, is a common service, and lookup Function: n_cst_dewsrv_find, is a common function. How do I feel that the more it becomes a brief introduction? Dizzy, still don't continue to write, the relevant PFC introduction online should have related documents, I will not write here, I still Let me feel useful, usually useful services.
8.DW line selection service: n_cst_dewsrv_rowselection: providing a line of radio, multi-selection, extended selection, so-called extension choice is to hold down the CTRL button, click the row, you can choose multi-line, if you hold the Shift key, click twice OK will choose all rows between the two lines. This feature is similar to the Windows Ctrl, the Shift function is similar.
9. Most Services N_CST_DWSRV_REQCOLUMN: You can register some columns of DW as a must enter. At this time, the focus must be entered, focus can be left, used to control certain entered columns .10. Message service: N_MSG: When the parameters that need to be passed between the windows, or when multiple variables that need to be transmitted, you can use the message object N_MSG.
11.TreeView Related Services: N_CST_TVSRV_LEVELSOURCE and N_CST_TVSRV: Through these two services, it can be constructed to build tree views and save data by modifying them.
12. String service n_cst_string: Many features for string operations, if you need to make a more complex operation on the string, let's take a look at its code, maybe you write it yourself, call it.
13. SQL Services N_CST_SQL: Provides assembly and split function of SQL statements, nice.
14. Stack Service N_CST_STACK: If you need to use the stack queue in the program, use it, don't have a hard research data structure. There is a queue service n_cst_queue
15. Services of digital variables PFC_N_CST_NUMERICAL: Provide digital in place (bit) conversion.
16. The most common service N_CST_MRU: That is very interesting, just like the nearest use of the document listed below the file menu, if you do it yourself, you have to write a large number of code.
17.ini file service N_CST_INIFILE: Operates the INI file.
18.Datetime data type service n_cst_datetime: Today, I found that this feature has been very useful before, some code I wrote, and I can find it here.
19. Data type conversion service n_cst_conversion: Really good. For example, enumeration variable ItemStatus status is converted into a character type status. Haha, you are you!
20. Color Service N_CST_COLOR: Many color settings in our program, unreasonable program habits always write color values, such as 85958595, etc., very long, and not good, not well maintained, use this service, this It looks clear.
21. There are also some DW debugging services in PFCUTIL.PBL, it is very easy to use, useful, you can study it.
22.PFC Permissions Security Service N_CST_Security: Its permission control function is too powerful, I have to admire, powerful now that most of the system is not necessarily so complicated! But everyone can still study it. Oh.
Saying dry mouth, drinking tea is also!