Help - Passing .NET Types as Powerscript Function Parameters

Hello Everyone,

I=92m seeking assistance from those who may have used the
XMLDocument class to generate XML output. I=92m having
problems defining .NET types as parameters in Powerscript
methods. Given that .NET types need to be enclosed in an #if
defined ... #end if block, is there a way I can define such
types as function parameters in Powerscript? And, as a side
issue, it appears one has to declare variables for .NET
types using fully qualified names. I have imported the
System, System.XML, etc. into my project. However, using
relative names for .NET types to define variables doesn't
seem to work for me. I=92m using PB11.5.1 Build 4011 on
Windows XP sp2 to develop a Windows Forms SmartClient
See code snippet below.

Greatly appreciate your help.


< code snippet >
#if not defined PBNATIVE then
	@System.Xml.XmlNode      in_node, in_root, in_body
	@System.Xml.XmlDocument	 in_document
	@System.Xml.XmlAttribute in_attribute
	@System.Xml.XmlElement	 in_element
#end if

#if not defined PBNATIVE then
	XmlNode  in_node, in_root, in_body
	XmlDocument	in_document
	XmlAttribute    in_attribute
	XmlElement	in_element
#end if
</ code snippet >
11/4/2009 11:32:15 PM
sybase.powerbuilder.xml 546 articles. 0 followers. Follow

0 Replies

Similar Articles

[PageSpeed] 15


Similar Artilces:

Login function using ASP.NET and XML database, help.
Hello, I've been working on an assignment with my group and is about developing an e-commerce site with simple features using ASP.NET. We have little past experiences in working with ASP.NET so I hope you guys can help us newbies. I'm trying to make a simple login feature on the index.aspx page that requires user to login with their username and password before clicking "enter" to proceed to the search.aspx page. The username and password info are simply stored in an XML file, with the following format... XML file - <CustomerInfo> <Customer> <C...

xml type parameter in Typed Dataset
I have a stored procedure which takes a XML parameter as input and has a XML output parameter. I'm wondering how I can query this procedure through typed dataset.  I tried using querytableadapter in the dataset, but it converts the XML type to object.  Thank You!Thank You, SrikanthWe have only one habitable planet yet. Consider the Environment. Wow! no reply! Am I asking a tough/dumb question or my language is bad?Thank You, SrikanthWe have only one habitable planet yet. Consider the Environment....

Select XML Data type (xml) from sql server 2005 and then save to a XML file on local machine?? Help !
Hi All  I have a problem i am selecting a row of data from a database, within that row is a column in which i build up a xml in a stored procedure, it creates an xml and stores it in the column name xmldata which is of xml datatype. This works great My problem is how do i now create a xml file on my local machine with that data, below is what i have so far :- Dim conn1 As New SqlConnection()conn1.ConnectionString = (ConfigurationManager.ConnectionStrings("ConnectionString").ConnectionString) conn1.Open()Dim DBCmd As New SqlCommand Dim DataRecieved As SqlDataReaderDBCmd...

Parameters in sql, xml type blocks: data types
I have some leftover dreamweaverMX code that contains a few sql/xml Parameter blocks in an admin-insert-data script: <Parameters> <Parameter Name="@ProductType" Value='<%# IIf((Request.Form("ProductType") <> Nothing), Request.Form("ProductType"), "") %>' Type="WChar" /> as far as specifying a Type, for strings it looks like WChar works, and for dates, Date. What about for truefalse-boolean fields, and numeric integers? thanks chum...

Help Help Help Help Help Help
------=_NextPart_000_0074_01C2960E.EBE13A30 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Can someone please help me. I have installed mysql on Unix Solaris and it works fine I have Perl installed previously which is working and with which i have installed other perlmodules before and are working fine. I have also installed DBI and it works fine with the Sybase drivers which i have installed. When i tried to install the Msql-Mysql-modules-1.2219 drivers i get the following error. # make /usr/local/bin/perl -Iblib/arch -Iblib/lib -I/...

I was using powerbuilder4.0 a month ago I decided that migrate it to PB7.0 When Im using 4.0, in datawindows I was using extra colums additional to stores procedure. I mean that for example; stored proc. returns 4 columns. I was using 2 extra columns to modify something from client. But I cant do the same thing in PB7.0. How can I do that??? please help. Gurcan yucel "I was using 2 extra columns to modify something from client." what does this mean that you added to the result set? If so then just goto the SQL and add a param. Then set the...

Type.GetType does not work in VB.NET but works in C#. VB.NET gurus Please help
Friends,   I am an experienced C# programmer who is working on a VB.NET project now. I am writing different methods covering the following functionalities 1) Take a datareader as input and return an arraylist of class object2) Take an xmlnode (received from a webservice) as input and return an arraylist of class object. The methods are generic methods which take datareader/xmlnode as first parameter and classname (string) as the second parameter. This way it will work trivially. The schema of class object matches with the input (datareader or xmlnode)In C# I used to do th...

ASP, XML,XML Island, XSL and VB / JavaScript functionality Versus AJAX with ASP.NET 2.0?
Portals can be developed using  Classic Technologies i.e., ASP, XML,XML Island,  XSL and VB / JavaScript . I think the functionality here is: Data is retrieved from Database and stored as xml islands and xsl Style sheet applied to xml and displayed as html on web browser(Correct me if I 'm wrong). Data communication between Client and Web Server can be reduced to improve faster interactivity without going back to Server some of the Tasks can be processed on client side and achieve higher interactivity. I like to know can we avoid XML , XSL? taking advantage (i...

Own Help in Powerbuilder Help
Hi all How can I get my Own Help into PB12 help? In PB 10.5 I put this into pbhelp105.cnt. But in PB12 there isn't a CNT in the Folder .../help. I found only HxK or HxC in the help folder. I have my own help instruction for Programmer. I want to include this in PB12 too. Have anyone a idea. Thanks. regards, Andr´┐Ż Rust Actually what you are supposed to do is add this line to the [PB] section of pb.ini: UserHelpFile=myhelpfile.hlp The .cnt file is a type of index file that is generated by the help compiler. Copy your .hlp file into the ...\PowerBuilder...

superreview granted: [Bug 342687] Remove unused message type parameters in some compose js functions : [Attachment 226995] Removes unused parameters
David Bienvenu <> has granted Mark Banner <>'s request for superreview: Bug 342687: Remove unused message type parameters in some compose js functions Attachment 226995: Removes unused parameters ... 2.0 error Argument not specified for parameter 'format' of 'Public Shared Function
here is the whole error message Argument not specified for parameter 'format' of 'Public Shared Function Format(enumType As System.Type, value As Object, format As String) As String'   i am getting it on the Format(sdate, "yyyyMMdd") lines i have this same code on other pages and it does not give me any errors at all. any ideas?Dim sdate As DateTime = DateTime.Now.ToShortDateString() Dim stime As DateTime = DateTime.Now.ToShortTimeString()Dim objStreamWriter As StreamWriter objStreamWriter = File.AppendText("C:\users" & Format(sdate, "...

superreview requested: [Bug 342687] Remove unused message type parameters in some compose js functions : [Attachment 226995] Removes unused parameters
Mark Banner <> has asked David Bienvenu <> for superreview: Bug 342687: Remove unused message type parameters in some compose js functions Attachment 226995: Removes unused parameters ...

Help Help Help Help
i need to create a crosstab report using Crystal reprot for VS 2003 i face aproblem when i need to order my Fileds by their names my data must be like this Basic Cola Housing Gross Deduction1 Deduction2 Deduction3 Net but when i run my report it give my a not sorted data acutally i have acode field which can i order field using it. but i don't knwo how to do thisSo..................? Select Report tab | |-->Select Record Sort expert Choost the fields you want to sort --Select the corresponding sort direction f...

help help help help
Name: chef mario Email: Product: Firefox Summary: help help help help Comments: Heard great reports about Firefox!!! Downloaded & installed Firefox !!!! Lost All my very very valuable BOOKMARKS!!! CAN ANYONE HELP!!!!! All bookmarks were in Internet Explorer Did bookmark transfer to Firefox. Seem the Fox eat all m,y bookmarks Need serious help anyone. chef mario Browser Details: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8) Gecko/20051025 Firefox/1.5 ...

.net Charting/XML Help
Looking for pointer/advice really. I have been asked to do is to use a given XML feed to display a chart of pollutant levels.  Below is a sample of the XML feed: <?xml version="1.0"?>  <results>    <date value="2006-03-27">      <no2>41.5,41.5,41.5,41.5,41.5,41.5,41.5,41.5,41.5,41.5,41.5,41.5,41.5,41.5,41.5,41.5,41.5,41.5,-1,11,8,6,8</no2>    </date>     <date value="2006-03-28"><no2>6,6,0,2,0,-1,4,2,2,2,-1,6,4,2,4,2,4,11,-1,8,10,13,13</no2>...

Web resources about - Help - Passing .NET Types as Powerscript Function Parameters - sybase.powerbuilder.xml

Component Object Model - Wikipedia, the free encyclopedia
Component Object Model ( COM ) is a binary-interface standard for software componentry introduced by Microsoft in 1993. It is used to enable ...

Aivosto - Analyze, Document and Flowchart Source Code
Programming tools for software developers. Visustin - Flow chart generator. Project Analyzer - VB code review and optimization. Film Store - Books / Video / Lighting
Home Page Contests Indies Features News Resource Links Advertise With Us Film Makers .com Film Store - Video / Camcorders Digital and Video Editing ...

directzzt - ZZT recreation in .Net, using DirectX and great extensibility - Google Project Hosting
This project aims at building ZZT, offering great new features in terms of gameplay, scripting, all together with being able to use the ZZT-worlds ...

PB Ultimate Suite - Modernize your PowerBuilder Interface
... a wide range of PowerBuilder GUI controls to help you change the look of your PowerBuilder application. All controls are written in pure PowerScript ...

PowerToTheBuilder - PowerBuilder UI Controls
... offers a wide range of GUI controls to help you change the look of your PowerBuilder application. All controls are written in pure PowerScript ...

The Big List of 256 Programming Languages
... OpenCL OpenEdge ABL OPL Oz Paradox Parrot Pascal Perl PHP Pike PILOT PL/I PL/SQL Pliant PostScript POV-Ray PowerBasic PowerScript ...

Java Threads - Real's Threads
Real's HowTo Custom Search Java Language String and Number Applet AWT Swing Environment IO Javascript interaction JDBC Thread Networking JSP ...

Windows XP tips, Vista news, Windows Support, and technology news
Here are some posts that talk about Windows Longhorn, or, Windows Server 2008. Longhorn Server to be christened Windows Server 2008 Microsoft ... wants to let you interconnect with all social networks, the latest company that wants to bring you social networking Nirvana by letting you update all your profiles from a single place, ...

Resources last updated: 12/15/2015 4:31:24 AM