PowerBuilder 6.5 Connection settings for Oracle Synonyms :
,JVOGEL_SE,"SYNONYM","TABLE","VIEW"
Question : How do I get a feature added to future versions of PowerBuilder?
Answer : Send a message to Cathy Col at with the subject "Enhancement Request". All messages with this subject are pooled and added to a running list.
Anybody [with
a Sybase Support contract] can Submit a Bug Report or Enhancement Request
on any Sybase Product using the following link : http://support.sybase.com/
and click on "Case Management"
Question : How do I "rollback" a change made in a descendant?
Answer : Select the menu item Edit->Reset Attributes.
Question : Should I use events or functions in my application?
| Answer : PB 5.0 and up | |
|---|---|
| Events | Functions |
| - Are only public - If using old syntax, existance is not checked at compile time - If using new syntax with the 'dynamic' keyword, if event does not exist at run-time and the calling script is not expecting a return value, the event will fail 'silently' |
- Can be public, private or protected - If using old syntax, must be a valid method for the class at compile time - If using new syntax with the 'dynamic' keyword, if function does not exist at run-time an execution error occurs |
Question : Can I get user, GDI and system resources in 32-bit?
Answer : Yes, but first you have to install the Win95 Resource Meter. If it's not installed, go to Control Panel->Add/Remove Programs->Windows Setup tab->Accessories->Details->System Resource Meter. This will cause a DLL named RSRC32.DLL to be installed.
Now, declare an external function as follows:
function integer GetFreeResources (integer WhichResource) &
library "rsrc32.dll" alias for "_MyGetFreeSystemResources32@4"
In addition, you will need three constants:
constant integer SYSTEMRESOURCES = 0
constant integer GDIRESOURCES = 1
constant integer USERRESOURCES = 2
Question : What are the PowerBuilder equivalents to the Windows SDK datatypes (hWnd, lpStr, etc.)?
Answer :
| Windows SDK | PowerBuilder 16-bit | PowerBuilder 32-bit |
|---|---|---|
| bool | boolean | boolean |
| char* | ref string | ref string |
| colorref | uint | ulong |
| dword | uint | ulong |
| handle | uint | ulong |
| hdc | uint | ulong |
| hfile | uint | ulong |
| hinstance | uint | ulong |
| hwnd | uint | ulong |
| int | integer | long |
| lparam | uint | ulong |
| lpbyte | ref integer | ref long |
| lpdword | ref uint | ref ulong |
| lpfiletime | ref time | ref time |
| lpint | ref integer | ref long |
| lpstr,lptstr | ref string | ref string |
| lpvoid | ref <structure> | ref <structure> |
| pbyte | ref integer[#] | ref long[#] |
| short | integer | integer |
| structure | ref <structure> | ref <structure> |
| uint | uint | ulong |
| void | SUBROUTINE | SUBROUTINE |
| word | uint | uint |
| wparam | uint | ulong |
| callback* | not supported | not supported |
|
Copyright © : 1997 - 2005 |