datawindow.import(XML!,"file.xml") syntax error

I am using Pocket PowerBuilder 1.5 build 360

from the help file I saw 


[ImportFile method (DataWindows)]

long dwcontrol.ImportFile ( {saveastype importtype}, string filename {, 
long startrow {, long endrow {, long startcolumn {, long endcolumn {, long 
dwstartcolumn } } } } } )

This statement inserts all the data in the file D:\TMP\EMPLOYEE.CSV into 
dw_employee starting at the first column:

dw_employee.ImportFile("D:\TMP\EMPLOYEE.CSV")

This statement inserts all the data in the file D:\TMP\EMPLOYEE.XML into 
dw_employee starting at the first column:

dw_employee.ImportFile(XML!,"D:\TMP\EMPLOYEE")

The following statements are equivalent. Both import the contents of the 
XML file named myxmldata:

dw_control.ImportFile(myxmldata.xml)
dw_control.ImportFile(XML!, myxmldata)


However, when I using the similar coding in the program it an Illegal 
enumerated constant: xml error will show. at the line I coded like below 
when I save the source in the PPB IDE - Script Painter.


dw_control.ImportFile(XML!, ls_xmlfilename)



where ls_xmlfilename is the file name of the xml file.

IS anything wrong in the script?

0
Pip
3/18/2004 10:29:37 AM
sybase.pocketpowerbuilder 3097 articles. 0 followers. Follow

1 Replies
858 Views

Similar Articles

[PageSpeed] 59

look in the help:
Pocket PowerBuilder    Comma-separated and XML data are not supported in
this release of Pocket PowerBuilder.

Pip wrote:

> I am using Pocket PowerBuilder 1.5 build 360
> 
> from the help file I saw 
> 
> 
> [ImportFile method (DataWindows)]
> 
> long dwcontrol.ImportFile ( {saveastype importtype}, string filename {, 
> long startrow {, long endrow {, long startcolumn {, long endcolumn {, long 
> dwstartcolumn } } } } } )
> 
> This statement inserts all the data in the file D:\TMP\EMPLOYEE.CSV into 
> dw_employee starting at the first column:
> 
> dw_employee.ImportFile("D:\TMP\EMPLOYEE.CSV")
> 
> This statement inserts all the data in the file D:\TMP\EMPLOYEE.XML into 
> dw_employee starting at the first column:
> 
> dw_employee.ImportFile(XML!,"D:\TMP\EMPLOYEE")
> 
> The following statements are equivalent. Both import the contents of the 
> XML file named myxmldata:
> 
> dw_control.ImportFile(myxmldata.xml)
> dw_control.ImportFile(XML!, myxmldata)
> 
> 
> However, when I using the similar coding in the program it an Illegal 
> enumerated constant: xml error will show. at the line I coded like below 
> when I save the source in the PPB IDE - Script Painter.
> 
> 
> dw_control.ImportFile(XML!, ls_xmlfilename)
> 
> 
> 
> where ls_xmlfilename is the file name of the xml file.
> 
> IS anything wrong in the script?
> 

0
Klaus
3/18/2004 10:52:47 AM
Reply:

Similar Artilces:

superreview granted: [Bug 219355] XML Parsing Error: undefined entity on files with Mime-Type: application/xhtml+xml, including about:, or "text/xml" : [Attachment 131594] use NS_GRE_DIR
Darin Fisher <darin@meer.net> has granted Benjamin Smedberg <bsmedberg@covad.net>'s request for superreview: Bug 219355: XML Parsing Error: undefined entity on files with Mime-Type: application/xhtml+xml, including about:, or "text/xml" http://bugzilla.mozilla.org/show_bug.cgi?id=219355 Attachment 131594: use NS_GRE_DIR http://bugzilla.mozilla.org/attachment.cgi?id=131594&action=edit ...

superreview requested: [Bug 219355] XML Parsing Error: undefined entity on files with Mime-Type: application/xhtml+xml, including about:, or "text/xml" : [Attachment 131594] use NS_GRE_DIR
Benjamin Smedberg <bsmedberg@covad.net> has asked Darin Fisher <darin@meer.net> for superreview: Bug 219355: XML Parsing Error: undefined entity on files with Mime-Type: application/xhtml+xml, including about:, or "text/xml" http://bugzilla.mozilla.org/show_bug.cgi?id=219355 Attachment 131594: use NS_GRE_DIR http://bugzilla.mozilla.org/attachment.cgi?id=131594&action=edit ...

Is there a way to write Atlas "text/xml-script" script Into single file like ".js" or ".css" file
I have tried the following code: <script type="text/xml-script" src="Default.aspx.ajax"><script type="text/xml-script" src="Default.aspx.js"><script type="text/xml-script" src="Default.xml"> but they dit dot work. thanks.msn & email:lidong6@gmail.com I believe it does not work as the XML-Script processor takes the content within the script tags to do processing and ignores the src tag. I think this will be a nice feature to add in the next release....

When I get .XML document with Request.Form["xml"].ToString(); it gets error.
XmlDocument xmlDocument = new XmlDocument(); xmlDocument.LoadXml(Request.Form["xml"].ToString());  I want system doesn't interrupt the code execution. How can I do system doesn't give error message?  Thanks.  Error Message  A potentially dangerous Request.Form value was detected from the client (xml="...8859-9" ?><BORCELIK><Tarih>09/...").  ...

superreview requested: [Bug 251274] Error: [Exception... "Node was not found" code: "8" nsresult: "0x80530008 (NS_ERROR_DOM_NOT_FOUND_ERR)" location: "chrome://inspector/content/inspector.xml Line:
Boris Zbarsky <bzbarsky@mit.edu> has asked neil@parkwaycc.co.uk <neil.parkwaycc.co.uk@myrealbox.com> for superreview: Bug 251274: Error: [Exception... "Node was not found" code: "8" nsresult: "0x80530008 (NS_ERROR_DOM_NOT_FOUND_ERR)" location: "chrome://inspector/content/inspector.xml Line: 684"] https://bugzilla.mozilla.org/show_bug.cgi?id=251274 Attachment 193251: Fix https://bugzilla.mozilla.org/attachment.cgi?id=193251&action=edit ------- Additional Comments from Boris Zbarsky <bzbarsky@mit.edu> This just makes su...

"There was an error generating the XML document" error
Using PB10.5.2 Build 7016 Generated proxies for Web Service using .NET (not EasySoap) Most functions work, but getting this error when calling a particular function whose 1st parameter is a complex datatype (which PB converts to structure) consisting of other complex data types (which PB converts to structures). The function is: SetTerminalsApplicationCharacteristics ( ggws_fwMTSetAppCharacteristics AppCharacteristics, string terminals[] ) returns ggws_sendmessageresponses ggws_fwMTSetAppCharacteristics has 17 fields that are structures. Each of these structures has 2-5 fields ...

superreview granted: [Bug 251274] [FIX]Error: [Exception... "Node was not found" code: "8" nsresult: "0x80530008 (NS_ERROR_DOM_NOT_FOUND_ERR)" location: "chrome://inspector/content/inspector.xml Lin
neil@parkwaycc.co.uk <neil.parkwaycc.co.uk@myrealbox.com> has granted Boris Zbarsky <bzbarsky@mit.edu>'s request for superreview: Bug 251274: [FIX]Error: [Exception... "Node was not found" code: "8" nsresult: "0x80530008 (NS_ERROR_DOM_NOT_FOUND_ERR)" location: "chrome://inspector/content/inspector.xml Line: 684"] https://bugzilla.mozilla.org/show_bug.cgi?id=251274 Attachment 193251: Fix https://bugzilla.mozilla.org/attachment.cgi?id=193251&action=edit ------- Additional Comments from neil@parkwaycc.co.uk <neil.parkwaycc.co.uk@myrealbox.com> Doh! What confused me is that the menu is contextual but not a context menu in the generally accepted sense. ...

"Path cannot be null." Error trying to write DataSet to XML file
 I'm trying to write a DataSet to XML but get the error "Path cannot be null." Program uses VB to get desired records key IDs from a form, then forms a query with them, fills a dataset with the query results and saves the dataset to XML. Any help would be greatly appreciated and I'd be happy to post additional code if needed.private sub Page_Load()    Dim con As SqlConnection    Dim cmd As SqlCommand    Dim profschema, profxml As String    Dim IDlist As String    Dim keyidary    D...

File write error on file "acct" in module "GWEACCT".
--____HHJZYVOOFXDLYDIWHUSF____ Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: base64 Content-Disposition: inline; modification-date="Tue, 24 Sep 2007 10:15:42 -0400" VGhlIG1vcm5pbmcgb2YgV2VkLiBTZXB0IDE5dGguIHdlIHN3aXRjaGVkIG91ciBHV0lBIG92ZXIg dG8gdmVyc2lvbiBHVzYuNSBTUDYgZnJvbSB2ZXJzaW9uIEdXNS41LiAgVGhlIG5leHQgbW9ybmlu ZyB3ZSBzdGFydGVkIGdldHRpbmcgdGhlIGZvbGxvd2luZyBlcnJvciBpbiBvdXIgR1dJQSBsb2cg ZmlsZTsNCg0KMDktMjAtMDcgMDg6MjI6MTAgMCBVbmtub3duLCBlcnJvciBjb2RlID0gODIxMA0K MDktMjAtMDcgMDg6MjI6MjEgMCBNU0cgNDAwIERlZmVycmVkIGRlbGl2ZXJ5IGZpbGUgbWVtb3J5 IGVy...

File write error on file "acct" in module "GWEACCT"
Getting this on GWIA 6.02 scrolling across the screen. Runs on a Win2ksp3 box. Searching TID's...... JG I'd probably whack most of the subdirs under gwia and let gwia rebuild. -- Michael J. Bell Novell Support Connection Volunteer Sysop Author of Guinevere (http://www.openhandhome.com) PLEASE: Do not e-mail me privately unless specifically asked. I'm a volunteer, not a Novell employee! All opinions and advice provided are MINE alone and NOT Novell's unless specifically identified as such. Novell does not officially monitor these forums. Enhance...

"Link-", "Libs-" and "Import-" -entries in CB2010-project file
Hi. Could anyone explain to me, what the meaning of the different "link/lib/import"-entries in the project-file is? I'm confused. Using the GUI there is only the "Runtime package"-list - the reason and function for that one, I do understand. But what do the others? And which one *is* the "Runtime package"-list?? <LinkPackageStatics></LinkPackageStatics> <LinkPackageImports></LinkPackageImports> <PackageImports></PackageImports> <AllPackageLibs></AllPackageLibs> Thanks a lot! Best Regards Eike Pete...

New Install: <?xml version="1.0" encoding="UTF-8" ?> error
Hi,I'm new to .net.  I'm trying to install DotNetNuke on my XP Pro with IIS 5.0 box.  I've made all the changes to web.config, created the db with permissions and I'm still getting the same error.Can't figure it out!Here's the error:  Server Error in '/DotNetNuke' Application. Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. Parser Error Message: Stream is not a valid resource file.Source Error: Line 1...

"File" to "File$date"
Okay... Thanks for all your answers! From all, I combinded the perfext solution: rename("test.txt", "test" . &heute() . ".txt"); sub heute { return (localtime(time))[3] . (localtime(time))[4] . = ((localtime(time))[5] 1900); } Thanks ;) Andreas -----Urspr=FCngliche Nachricht----- Von: Sudarshan Raghavan [mailto:sraghav@india.hp.com]=20 Gesendet: Samstag, 14. September 2002 15:21 An: Perl beginners Betreff: Re: AW: Rename "File" to "File$date" On Sat, 14 Sep 2002, Sudarshan Raghavan wrote: >=20 > #!/...

Parser Error
What do I make to solve that problem? Parser Error Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately. Parser Error Message: Stream is not a valid resource file.Source Error: Line 1: <?xml version="1.0" encoding="utf-8" ?> Line 2: <locales> Line 3: <inactive>Source File: /dotnetnuke320/App_GlobalResources/Locales.Portal.xml.resources    Line: 1 Version Information: Microsoft .NET Framework Versio...

Error XML "conatins"
 Hello, here is my xml<?xml version="1.0" encoding="ISO-8859-1"?><form>    <description>        <desc_id>048/26/SMD/HRD/9/00</desc_id>        <title>Title2</title>        <dates>3/21/1999</dates>        <author>Smart Co</author>        <file_name>Policy2</file_name>        <type>pdf</type&g...

XML "out of memory" error
We're testing an application we developed which passes information back and forth with another application using XML and Indy components. Recently, we've seen some attempted connections which are not instigated by our application. When these happen, we're getting "out of memory" exceptions. This occurs on the server when the IdTCPServer1Execute event is triggered. A snippet of the code is below: with AContext.Connection.IOHandler do begin DataStream := TStringStream.Create(''); try ReadStream(DataStream); try xmlIncoming := LoadXMLDat...

Error with the DataList binding to an XML file "Index -1 is either negative or above rows count."
Hello,  Having an issue with the DataList binding to an XML file. Error and all code is below. I am making a user control that I can use later in my CMS system.  Thanks,TJ Havens Server Error in '/' Application. Index -1 is either negative or above rows count. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.IndexOutOfRangeException: Index -1 is either negative or above rows count.Source Erro...

superreview granted: [Bug 428847] XML Parsing Error with ":" in href attribute of xml-stylesheet processing instruction : [Attachment 316114] Fix, with tests.
Jonas Sicking (:sicking) <jonas@sicking.cc> has granted Johnny Stenback (:jst) <jst@mozilla.org>'s request for superreview: Bug 428847: XML Parsing Error with ":" in href attribute of xml-stylesheet processing instruction https://bugzilla.mozilla.org/show_bug.cgi?id=428847 Attachment 316114: Fix, with tests. https://bugzilla.mozilla.org/attachment.cgi?id=316114&action=edit ...

superreview requested: [Bug 428847] XML Parsing Error with ":" in href attribute of xml-stylesheet processing instruction : [Attachment 316114] Fix, with tests.
Johnny Stenback (:jst) <jst@mozilla.org> has asked Jonas Sicking (:sicking) <jonas@sicking.cc> for superreview: Bug 428847: XML Parsing Error with ":" in href attribute of xml-stylesheet processing instruction https://bugzilla.mozilla.org/show_bug.cgi?id=428847 Attachment 316114: Fix, with tests. https://bugzilla.mozilla.org/attachment.cgi?id=316114&action=edit ...

"Attempt to use an "XML" extension that has not been registered..."
Hello, I am using Reporting Service in server mode.I currently have a report in which in include a few subreports. All of them use the same datasource (sqlserver 2005 database connectionstring)I have to add another report which is based on XML data. To do so, I created a new shared datasource, designed my query, added the report parameters, tested the query... This works but when I try to deploy this report on the report server I am getting an error I do not understand:"Attemps to use an "XML" extension of data that has not been registered for this report server"I do...

How can I solve this error "XML Parsing Error: no element found"
 heres my code behind in UploadImage.aspx.vb _____________________________________________________________________________________________________________________________Imports System.Data.SqlClientImports System.ConfigurationImports System.IOPartial Class UploadImage    Inherits System.Web.UI.Page    Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click        Dim conn As New SqlConnection        Dim comm As New SqlCommand  ...

"Merge" two xml files into one file stream then deserialize
"Merge" two xml files into one file stream then deserialize I have two config files: 1. "dbs.config" which contains the connection string to a dbs. 2. "acc.config" will contain other settings These have to be in two seperate config files it is not possible to have them in the same file The code below will load one of the files (dbs.Config) into a file stream and then we used the Deserialize method to retrieve the oject state ie the "ConnectionString" and "HasEamil" (other config files my have more!) What I want to be able to do is t...

superreview granted: [Bug 211046] In <chrome://global/content/bindings/tree.xml>, "Error: this.treeBoxObject.selection has no properties" : [Attachment 147569] (Av2b) <tree.xml>
Serge GAUTHERIE <gautheri@noos.fr> has granted Serge GAUTHERIE <gautheri@noos.fr>'s request for superreview: Bug 211046: In <chrome://global/content/bindings/tree.xml>, "Error: this.treeBoxObject.selection has no properties" http://bugzilla.mozilla.org/show_bug.cgi?id=211046 Attachment 147569: (Av2b) <tree.xml> http://bugzilla.mozilla.org/attachment.cgi?id=147569&action=edit ------- Additional Comments from Serge GAUTHERIE <gautheri@noos.fr> Keeping: {{ (Av2) <tree.xml> patch 2004-04-19 15:57 PDT varga: review+ jag: super...

superreview requested: [Bug 211046] In <chrome://global/content/bindings/tree.xml>, "Error: this.treeBoxObject.selection has no properties" : [Attachment 146534] (Av2) <tree.xml>
Serge GAUTHERIE <gautheri@noos.fr> has asked jag (Peter Annema) <jag@tty.nl> for superreview: Bug 211046: In <chrome://global/content/bindings/tree.xml>, "Error: this.treeBoxObject.selection has no properties" http://bugzilla.mozilla.org/show_bug.cgi?id=211046 Attachment 146534: (Av2) <tree.xml> http://bugzilla.mozilla.org/attachment.cgi?id=146534&action=edit ...

Web resources about - datawindow.import(XML!,"file.xml") syntax error - sybase.pocketpowerbuilder

PowerBuilder - Wikipedia, the free encyclopedia
PowerBuilder is an integrated development environment owned by Sybase , a division of SAP . It has been in use since 1991, peaking around 1998 ...

Intelligent Versus Surrogate Keys
Should I use business columns as primary key fields for tables in thedatabase, or generate artificial primary key values? When business-related ...

chevy volt
ProEXR File Description =Attributes= channels (chlist) compression (compression): Zip dataWindow (box2i): [0, 0, 5119, 2475] displayWindow (box2i): ...

Enable - A comprehensive solution for the localization of PowerBuilder applications Untitled Document ...
Enable is localization/ translation tool used by PowerBuilder developers to make their applications multilingual.Enable is a powerful tool that ...

comp.lang.clipper.visual-objects - Google Groups
comp.lang.clipper.visual-objects 1-20 von 33006 Themen werden angezeigt Integrity of a file marcosm...@gmail.com 09:35 Combobox value Lu 08:12 ...

Sybase PowerBuilder tool readied for Microsoft's .Net
Developers can choose Win32 or newer style .Net development

PowerToTheBuilder - PowerBuilder UI Controls
HOME - COMPONENTS - PB UI DESIGNER - DOWNLOAD\PURCHASE - SUPPORT - FAQ - ABOUT Take Control of your UI with PB Ultimate Suite PowerToTheBuilder.com ...

Beautiful iPad Mini 3 Concept Reimagines Appleā€™s Tablet With iPhone 6 Design, Gold Color [Images]
The iPhone 6 may be grabbing all of the recent headlines due to its impending announcement, but spare a thought for those who prefer to stay ...

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

Business Intelligence Products - Database Management, Data Warehousing & Mobility Software - Sybase Inc ...
Sybase offers a variety of Business Intelligence (BI) software like products for database management, data warehousing and mining, data integration ...

Resources last updated: 3/4/2016 7:00:44 PM