Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with xmltocursor() function
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Problem with xmltocursor() function
Miscellaneous
Thread ID:
00590428
Message ID:
00590428
Views:
87
*!* The problem occurs when xmltocursor() function convert a numeric value:

*!* - if the value is 0, the incorrect result is .F.
*!* - if the value is 1, the incorrect result is .T.

*!* Is this a bug?

*!* Thanks,

*!* Marcio Goncalves
*!* Niteroi-Rio de Janeiro-Brasil

create table SAMPLE (name c(10), age i)
insert into SAMPLE (name, age) values ("Marcio", 1)
insert into SAMPLE (name, age) values ("Ghandi", 2)
select * from SAMPLE where name = "Ghandi" into cursor curSAMPLE
cursortoxml("curSAMPLE", "lcXML")
xmltocursor(lcXML, "curSAMPLE_CORRECT")
browse
select *, "See the age!" as Bug from SAMPLE where name = "Marcio" into cursor curSAMPLE2
cursortoxml("curSAMPLE2", "lcXML2")
xmltocursor(lcXML2, "curSAMPLE2_BUG")
browse
Marcio Gomes Gonçalves
Niteroi-RJ-Brasil
gomes@metha.com.br

Paz e Bem!
Next
Reply
Map
View

Click here to load this message in the networking platform