Can I change the Library list dynamically when I run the pb's application?

 Can I change the Library list dynamically when I run the power builder's 
application?
 any advice is appreciate.
0
Salad_yfz
6/27/2001 2:29:01 AM
sybase.powerbuilder.general 62418 articles. 19 followers. Follow

6 Replies
485 Views

Similar Articles

[PageSpeed] 31

You can find this on PB's help:
CHOOSE CASE configuration 

CASE "Config1"
myapp.SetLibraryList("lib1.pbd, lib2.pbd, lib5.pbd")
CASE "Config2"
myapp.SetLibraryList("lib1.pbd, lib3.pbd, lib4.pbd")
END CHOOSE
0
royv
6/27/2001 3:48:09 AM
thank you for your help.
another question is that My powerbuilder's compiler can not recognise the 
object in the dynamic library.
for example:
   there is a window named "w_main" in test.pbd,and the following is wrong
/*=================================*/
   SetLibraryList("test.pbd")
   open(w_maim)
/*=================================*/
what is the usage is it?
thank you again.
0
Salad_yfz
6/27/2001 7:14:29 AM
The SetLibraryList function doesn't work in the development environment,
only at runtime.  Also, it should include the full library list, not just
the library you want to add.
Simon

--
Simon Caldwell
Get Real Systems Ltd
Holtby Manor, Stamford Bridge Road, York, YO19 5LL
Tel 01904 481999 Fax 01904 481666
Visit us at www.getrealsystems.com

Specialists in e-Procurement and supply chain technology


<Salad_yfz> wrote in message
news:055F62C2919F9B2A0027C71C85256A78.0018EE2085256A78@webforums...
> thank you for your help.
> another question is that My powerbuilder's compiler can not recognise the
> object in the dynamic library.
> for example:
>    there is a window named "w_main" in test.pbd,and the following is wrong
> /*=================================*/
>    SetLibraryList("test.pbd")
>    open(w_maim)
> /*=================================*/
> what is the usage is it?
> thank you again.


0
Simon
6/27/2001 8:49:07 AM
thank you,your advice is very important.

But the primary question is that My powerbuilder's compiler can not 
recognise the object in the dynamic library. for example: there is a window 
named "w_main" in test.pbd,and the following /*1.SetLibraryList("test.pbd") 
2.open(w_maim)*/ can not compile pass,So I count not link it to EXE 
files.Then what can I do now?

thank you again. 
0
Salad_yfz
6/27/2001 11:03:36 AM
Two thoughts:

- You cannot remove the library that holds the applications object
(nor any libraries that hold open objects) from the application path
when changing the path.

- AFAIK, an unqualified file name wouldn't work in the library list in
the IDE. I'd expect you'd need a fully qualified path on the library
name.

Good luck, 

Terry [TeamSybase] and Sequel the techno-kitten

On Wed, 27 Jun 2001 07:03:36 -0400, Salad_yfz wrote:

>thank you,your advice is very important.
>
>But the primary question is that My powerbuilder's compiler can not 
>recognise the object in the dynamic library. for example: there is a window 
>named "w_main" in test.pbd,and the following /*1.SetLibraryList("test.pbd") 
>2.open(w_maim)*/ can not compile pass,So I count not link it to EXE 
>files.Then what can I do now?
>
>thank you again. 


Sequel's Sandbox: http://www.techno-kitten.com
Home of PBL Peeper, a PowerBuilder Developer's Toolkit. 
Version 2 now available at the Sandbox

Charitable donations without money?
CLICK FOR FREE MONEY!!
The Hunger Site: http://www.thehungersite.com
The Rainforest Site: http://www.therainforestsite.com
The Kids AIDS Site: http://www.thekidsaidssite.com
The Child Survival Site: http://www.thechildsurvivalsite.com
The Breast Cancer Site: http://www.thebreastcancersite.com
The Landmine Site: http://www.thelandminesite.com
0
Terry
6/27/2001 11:59:45 AM
I think I understand your issue. What you need to do is use the alternate
approach to Open where you specify the name of the window as a string ie:
Open(Windref, "w_main) where WindowRef is a reference variable to hold the
reference to the window. This way the compiler will not check that the w_main
window exists at the time of compile.

I will also add that you should check that the window does exist before you do
issue the call to make sure you avoid a runtime error. Use the
FindMatchingClassdefinition function to check.


regards,
Bill

Salad_yfz wrote:

> thank you,your advice is very important.
>
> But the primary question is that My powerbuilder's compiler can not
> recognise the object in the dynamic library. for example: there is a window
> named "w_main" in test.pbd,and the following /*1.SetLibraryList("test.pbd")
> 2.open(w_maim)*/ can not compile pass,So I count not link it to EXE
> files.Then what can I do now?
>
> thank you again.

--
Bill Green[TeamSybase]
-----------------------------------------------------------
Vote Now: Readers Choice Awards
http://www.sys-con.com/java/readerschoice2001/


Good Links to know, good places to go:

Developer stuff on my.sybase.com - Sign up, visit often
Find things like:
-- EAServer 3.6.1 maintenance release is available
-- PowerBuilder 7.03 maintenance release available
-- Components, White papers, articles and more
-- Web DataWindow Article Series (Author: Larry Cermak)
-- Jaguar Agent for Web Servers (HTTP access to PB components)

PFC Guide - http://www.pfcguide.com

Power3 - Custom Training  - http://www.power3.com
Bill Green @ Power3 - wgreen@power3.com
-----------------------------------------------------------


0
Bill
6/27/2001 1:14:48 PM
Reply:

Similar Artilces:

List of PB Dll's required to create independent Executable for PB application
Hi All, I have application developed in PB9 and oracle9, i need to create Executable and need to run to machine which dont have Power Builder installed. Please tell the list of PB9 DLL's are required to copy while creating Executable. Thanks & Regards Mukul Trivedi There is a section in the documentation that discusses the deployment files needed (and permitted) for PowerBuilder. mukul wrote: > Hi All, > > I have application developed in PB9 and oracle9, i need to create > Executable and need to run to machine which dont have Power Builder > ins...

Can't connect PB 5.0 to Oracle 7.3 since Ip's adresses changed
Hi, I'm Running PB 5.0 on Oracle 7.3, but I can't get connected to the database from the designer since I Change the ip's adresses, I don't understand because I do the tnsping succesfully.. Somebody has an idea about it? Thanks JEsus Gutierrez ...

Can I Execute An ASP.NET 1.1 Application's ASPX Page By Using Server.Execute From An ASP.NET 2.0 Application's ASPX Page
Hi All,Can someone help on this?I have 2 ASP.NET applications, 1 built in 1.1 and the other on 2.0In 1 of the aspx pages in my ASP.NET 2.0 application, I do Server.Execute and call another aspx page which is part of the ASP.NET 1.1 application. On doing this, I get this error: Invalid path for child request. A virtual path is expected.Is there any solution for this except for using Response.Redirect (WHICH I CANT USE). If not then can someone suggest a wayout for this:Whenever a new user signs up in my ASP.NET 2.0 application, I need to create a new user in my ASP.NET 1.1...

SQLCA works when application runs in PB not when application is run with Powerbuilder WDK.
Hi, My applications with out SQLCA run great through Powerbuilder WDK, my applications that contain SQLCA information doesn't. When I run the application in PB I get a splash screen and then the application starts. When I run it through PB WDK the splash screen starts and the I get a login box. No matter what I do it always show's up and when I hit OK I get the following SQLSTATE = 08001 error. How can I stop this from occurring? The SQLCA code and ini file are below. code: startupfile = "pds.ini" /* Populate sqlca from current PB.INI settings */ sqlca.DBMS...

superreview granted: [Bug 242760] code cleaning: rechecking checked rc's, dropping a temporary comptr, a comment change : [Attachment 147787] store rc's so ifs can check, drop temporary comptr, chang
Johnny Stenback <jst@mozilla.jstenback.com> has granted timeless@myrealbox.com (working) <timeless@bemail.org>'s request for superreview: Bug 242760: code cleaning: rechecking checked rc's, dropping a temporary comptr, a comment change http://bugzilla.mozilla.org/show_bug.cgi?id=242760 Attachment 147787: store rc's so ifs can check, drop temporary comptr, change comment, check alloc http://bugzilla.mozilla.org/attachment.cgi?id=147787&action=edit ------- Additional Comments from Johnny Stenback <jst@mozilla.jstenback.com> - element->Append...

GPF's when running application from PowerBuilder
I am running 5.0.02 32bit. One of my windows has a problem in that when I run from powerBuilder (development only), I get the following error after exiting from this window. I have made sure that all objects that I am creating are getting destroyed appropriatly. I also have made sure that I turn shareDataOff before exiting the window. PB050 caused an invalid page fault in module PBRTE050.DLL at 0137:10b16f2d. Registers: EAX=0041059c CS=0137 EIP=10b16f2d EFLGS=00010246 EBX=00c1ed20 SS=013f ESP=0063f9d4 EBP=0046cfd0 ECX=00000000 DS=013f ESI=004106dc FS=2cdf EDX=004f97ec ES=0...

Which .dll's can cause errors in PB .dll's
I would like to find out which .dll's (not PB .dll's) can cause errors in PB ..dll's - for example in pbvm60.dll. I know that drivers to some HP printers can cause errors in PB programs. Have a nice day! Joanna Any DLL that PB interacts with can result in errors... /ck "Joanna Owczarzak" <windows@poznan.varico.com> wrote in message news:P1Ms22iLCHA.654@forums.sybase.com... > I would like to find out which .dll's (not PB .dll's) can cause errors in PB > .dll's - for example in pbvm60.dll. > I know that drivers to some H...

It's possible to change WebDataWindow's syntax at running time ?
It's possible to change a Web DataWindow's syntax at running time ? Thanks for any suggestion. David W If you access the web dw through 4GL Web Page, then you can change the Web DW SQL Syntax at run time by calling dw_1.SetSQLSelect(sqlquery) or dw_1.Modify(syntax) function through any one of the 4GL Web Server-side events. Azeez On Sun, 28 Jul 2002 15:29:39 +0800, in powersoft.public.powerbuilder.web-targets David W <milon@nbip.net> wrote: >It's possible to change a Web DataWindow's syntax at running time ? > >Thanks for any suggestion...

How can I change a window's menu dynamically?
Hi, In PowerBuilder 6.5, I have a string with the name of menu and a lots of menus. I want to know how can I put the menu with the name in string, in a window MDI Frame? I tried with ChangeMenu function, but the parameter for this function can be a menu type. I tried to create a menu variable, and assign the string with menu name in this variable using "CREATE USING ls_menu", and call ChangeMenu function with menu-variable parameter, but it doesn't work. Someone can help me??? Thank you. ...

How can I change a window's menu dynamically? #2
Hi, In PowerBuilder 6.5, I have a string with the name of menu and a lots of menus. I want to know how can I put the menu with the name in string, in a window MDI Frame? I tried with ChangeMenu function, but the parameter for this function can be a menu type. I tried to create a menu variable, and assign the string with menu name in this variable using "CREATE USING ls_menu", and call ChangeMenu function with menu-variable parameter, but it doesn't work. Someone can help me??? Thank you. (from PB help...) windowname.ChangeMenu ( menuname {, position ...

Can I dynamically change a view's masterpage in MVC?
If dynamically change view's masterpage is allowed in mvc.How to do it? In Controller or View(code-behind)? Thank you! Hi dear, Please use Like this protected void Page_PreInit(object sender, EventArgs e) { this.Page.MasterPageFile = "~/General.master"; }Muhammad ShoaibSoftware Engineer,Lahore, Pakistanwww.heartofpakistan.com (U/C)--------------------------------Mark it as ANSWER if it Helps U Not sure if this is 100% what you are looking for, but here's an approach using ResultFilter --> http://blog.maartenballiauw.be/post/2008/1...

Icon : change application's icon at run-time
Hi, I found a way to successfully change an application's icon at run-time. We want to achieve that because one of our programs is to be used in different countries and we want the icon to be the country's flag without having to rebuild the EXE (this is a requirement from our customer !). I use the following technique (C or Deplhi API calls): // Get the address of current WndProc lWndProc = GetClassLong(hMainWindow, GCL_WNDPROC); // Create a subclass for the window (to avoid changing all PB windows icon) but keep the same WndProc SetWindowLong(hMainWindow, GWL_WN...

Can't figure out what's wrong with mail URL's
I have a problem in that when I click a URL within my mail client (Mozilla Thunderbird) - it downloads HTML and then displays it in IE with an address of C:\Documents and Settings\my name\Local Settings\Temp\name of HTML file This means that none of the associated images etc are displayed. The only way I can get the site to load properly is to copy and paste the URL into IE directly. Previously I was using Mozilla Firebird as my default browser. Anyone know what is going on here? Thanks! XP Pro SP1, IE 6.0, Mozilla Thunderbird 0.4 Paul Jackson <jackson.p.g@ayte...

Can I change a treeview's text size depending on what my browser's text size is set to?
I'm using a treeview on a .net 2.0 page and all is working fine with it in Internet Explorer.  However if I go to View -->  Text Size --> Largest on my browser's menu, all the text on my page appears huge apart from the text in the treeview which remains the same size as it always was.  Is there a way to fix this so that this text will also increase in size? Many Thanks. Make sure the font size is not set in the control.  And use css to help moderate your pages look and feel. HTH,Joe JohnstonIf a picture is worth a 1000 words, a sample application ...

Web resources about - Can I change the Library list dynamically when I run the pb's application? - sybase.powerbuilder.general

Application - Wikipedia, the free encyclopedia
Text is available under the Creative Commons Attribution-ShareAlike License ;additional terms may apply. By using this site, you agree to the ...

Pre-Christmas job application rush hits Australian public service
Speed required for pre-Christmas job window opening for public servants. Check out who is hiring.

Cloud application adoption increases 71 percent in 2015
The adoption of cloud applications is soaring, up by 71 percent in the last year according to the results of a new survey. The latest Cloud ...

NASA is accepting astronaut applications, and this quiz will tell you if you qualify
... gone before, then you might want to sign up to be a NASA astronaut. On Dec. 14, for the first time in four years, NASA began accepting applications. ...

MBA: Mortgage Applications Decrease in Latest MBA Weekly Survey, Purchase Applications up 34% YoY
From the MBA: Mortgage Applications Decrease in Latest MBA Weekly Survey Mortgage applications decreased 1.1 percent from one week earlier, ...

German-Based Spirea Promotes Decentralized PV Applications In Uruguay
... Its technical operations specialist, Laurie Lawrence, pointed out that Uruguay [&hellip German-Based Spirea Promotes Decentralized PV Applications ...

ZTE to develop smartphone application processors in house
ZTE has stepped up its efforts to internally develop smartphone chipset solutions, aiming to re-capture the title as one of the top-three smartphone ...

Pre-K Applications Begin Jan 25, a Month Earlier Than Last Year, City Says
The DOE has moved the process up to Jan. 25 on the heels of a similar schedule shift for kindergarten. MANHATTAN — The application period for ...

NASA accepting applications for the position of 'astronaut'
Wanted ads aren't usually newsworthy, unless the company is NASA and the job is "going to space." The US space agency has started recruiting ...

IBM Takes on AT&T Managed Application, Hosting Services
AT&T’s networking, security and mobility solutions coupled with IBM Cloud offers companies a fully managed IT environment.

Resources last updated: 12/22/2015 1:13:27 PM