I am using Powerbuilder 6.5 and Sybase 11 on NT.

I created a window that uses the n_cst_dwsrv_querymode service and it works well.  
However, I want to add the functionality to it that will allow users to save and load 
the queries they create.  

Online help provides the following example:

FOR SAVE:  ( I put this in a cb_save command button on the window)
String    ls_path_name, ls_doc_name 
ls_path_name = "c:\temp\rkn.txt" 
dw_1.inv_querymode.of_Save ("Save a Query", ls_path_name, ls_doc_name) 

FOR LOAD:  ( I put this in a cb_load command button on the window)
Integer   li_return 
String    ls_path_name, ls_doc_name 
ls_path_name = "c:\temp\rkn.txt" 
dw_1.inv_querymode.of_Load ("Load a Query", ls_path_name, ls_doc_name) 

But when I put the above in the onclick for the two respective command buttons, I get 
a null object reference error in both cases.  

Does anyone know how this should be done?

Any help would be greatly appreciated,
Jill Claus

Jill Claus   (842-4369)
Financial Information Management


> [EMAIL PROTECTED] HOSTED BY IIGG, INC. FOR HELP WITH LIST SERVE COMMANDS, ADDRESS
> A MESSAGE TO [EMAIL PROTECTED] WITH THE FOLLOWING MESSAGE:   help pfcsig
> SEND ALL OTHER INQUIRES TO [EMAIL PROTECTED]

Reply via email to