5.0: xml API fails

Just starting out? Need help? Post your questions and find answers here.
tspivey
New User
New User
Posts: 7
Joined: Wed Jun 13, 2007 12:17 am
Location: Canada

5.0: xml API fails

Post by tspivey »

This code works fine on 4.61, but not 5.00:

Code: Select all

Debug PeekS(XML_ExpatVersion_())
In 5.0 and above, I get: Line 1: XML_ExpatVersion_() is not a function, array, list, map or macro.
PB 5.0 upgraded expat to 2.1.0. Looking at the source for that expat, the function still exists.
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Re: 5.0: xml API fails

Post by ts-soft »

Is not a bug!

Functionname is changed:

Code: Select all

Debug PeekS(pb_XML_ExpatVersion_(), -1, #PB_Ascii)
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
Fred
Administrator
Administrator
Posts: 18396
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: 5.0: xml API fails

Post by Fred »

since 5.0, all expat calls are prefixed with 'pb_' to avoid conflict.

Code: Select all

Debug PeekS(pb_XML_ExpatVersion_())
Post Reply