Re: Strategies for keeping connection open to MySQL web databasefrom VFP9 client

2008-02-05 Thread Eyvind Axelsen
-Opprinnelig melding-
Fra: [EMAIL PROTECTED] på vegne av Jaime Vasquez

Paul McNett wrote:
 
 Now *that* sounds like a MS move for sure! The developer says close the 
 connection and the server, behind the scenes, keeps it open for you.
 

This technique it's called Connection Pooling and it's not only a MS 
thing, as you can see in the links at the end of the article:

Also, at least for MS SQL, you can disable it by adding Pooling=false to your 
connection string. I suppose this would be true for most databases.

Eyvind.


--- StripMime Report -- processed MIME parts ---
multipart/mixed
  text/plain (text body -- kept)
  application/ms-tnef
---

___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.


Re: Need for webservice to be called from our app in near future(VFP9)

2008-01-29 Thread Eyvind Axelsen
Opprinnelig melding-
Fra: [EMAIL PROTECTED] på vegne av Paul McNett

 But they become objects at the other end. Mainly structures.

 You don't care what happens at the other end, though, do you? You just 
 need to write your client code to the API, right?

I think the point here is that if you want to do this in fox, you have to do a 
lot of 'roll your own', versus with Visual Studio and .NET, a lot of the 
complexity and ugly details concerned with packing and unpacking objects is 
hidden from you, and 'it just works' (most of the time). That is my experience, 
anyway.

Eyvind.


--- StripMime Report -- processed MIME parts ---
multipart/mixed
  text/plain (text body -- kept)
  application/ms-tnef
---

___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.


Re: Need for webservice to be called from our app in near future(VFP9)

2008-01-29 Thread Eyvind Axelsen
-Opprinnelig melding-
Fra: [EMAIL PROTECTED] på vegne av Ed Leafe
 True, but we all rely on the tools we use, and to code everything in  
 assembler is not something you'd want.

   Huh? What planet did you just arrive from?

   XML is *TEXT*. You use a *TEXT* editor.

   What the hell does assembler have to do with anything?

Come on now, Ed, that was a simple analogy that most should be able to follow. 
Most tools allow for abstractions and/or code generation for complex features. 
In that respect, code for web services generated from a WSDL is not 
_significantly_ different from code generated by a compiler from a higher level 
source language, such as VFP, Pyhon, C# etc., from a _conceptual_ point of 
view. It can all be considered , and I'm quoting, 'black magic'. And that, dear 
Ed, is 'what the hell' assembler has to do with anything and everything.

 Python is a platform as well,
   No, it is a programming language, not a platform.

It is indeed a platform in the sense that it provides you with a set of 
abstractions from which you build your solutions. No, it is not a platform in 
the same way that windows or linux are, so what? That does not mean that you 
are not locked into the Python _programming platform_ if you have lots of 
source code there.


 and one day it too will be dead.
   Well, duh! So will we all. But at least until those events, going  
with a non-proprietary solution doesn't lock you into it when things  
change in the future.

Yes, everything dies, and I, for one, believe that there is more future in the 
.NET platform than there is in Python, though there is no one true answer to 
that.

 When the OP wrote that he needs a web service in the _near future_,  
 not checking out what is available and useful right now in Visual  
 Studio would be a very bad move, IMHO.
   And likewise, limiting your checking out to Visual Studio is an  
even worse decision.

Did I ever mention that he should limit what he is checking out? And, while 
we're at it, could please provide examples of something that would work equally 
well within a limited time frame from Fox (possibly utilizing COM, if required) 
for a complex web service?

Eyvind

[excessive quoting removed by server]

___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.


Re: Need for webservice to be called from our app in near future(VFP9)

2008-01-29 Thread Eyvind Axelsen
-Opprinnelig melding-
Fra: [EMAIL PROTECTED] på vegne av Ed Leafe

   The 'S' in 'SOAP' was supposed to stand for 'Simple', but Microsoft  
 and others have made SOAP so complicated that the only way to use it  
 effectively is to lock into their tools. Once you get used to all that  
 black magic happening under the hood, it's just so easy to continue to  
 rely on the tool, and before you know it, you're locked into a  
 platform again.

True, but we all rely on the tools we use, and to code everything in assembler 
is not something you'd want. Python is a platform as well, and one day it too 
will be dead. When the OP wrote that he needs a web service in the _near 
future_, not checking out what is available and useful right now in Visual 
Studio would be a very bad move, IMHO.

Eyvind.


--- StripMime Report -- processed MIME parts ---
multipart/mixed
  text/plain (text body -- kept)
  application/ms-tnef
---

___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.


RE: 32bit Compatibility Mode

2008-01-09 Thread Eyvind Axelsen
It can be debugged just as any other .NET language (C#, VB etc), as the vfp 
program is being compiled into pure .NET IL code :)

-Opprinnelig melding-
Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne av Allen
Sendt: 9. januar 2008 12:47
Til: profox@leafe.com
Emne: RE: 32bit Compatibility Mode

That would be good if it can debug as well. Thats my main problem at the
moment with VFP in .net.
We seem to have three possible avenues. this one, plus Christof's and
whatever Sweatpotato's Craig is doing
Allen

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Eyvind Axelsen
Sent: 09 January 2008 12:37
To: [EMAIL PROTECTED]
Subject: RE: 32bit Compatibility Mode

Unless, of course, eTecnologia are able to finish their .NET compiler for
VFP - then we'll go 64 with ease =)

http://www.etecnologia.net/

No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.516 / Virus Database: 269.17.13/1214 - Release Date: 08/01/2008
13:38
 



[excessive quoting removed by server]

___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.


RE: 32bit Compatibility Mode

2008-01-09 Thread Eyvind Axelsen
Unless, of course, eTecnologia are able to finish their .NET compiler for VFP - 
then we'll go 64 with ease =)

http://www.etecnologia.net/



-Opprinnelig melding-
Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne av Alan Bourke
Sendt: 9. januar 2008 10:21
Til: profox@leafe.com
Emne: Re: 32bit Compatibility Mode

32 bit applications run on 64 bit Windows in the same way as 16 bit
applications run in 32 bit Windows, in an emulated machine. And VFP will
never be 64 bit, this is what will ultimately finish it off.
-- 
  Alan Bourke
  [EMAIL PROTECTED]



[excessive quoting removed by server]

___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.


RE: VFP9 SOAP/WSDL Blues revisited

2007-11-08 Thread Eyvind Axelsen
Probably not the answer you are looking for, but I'd bet you could save a lot 
of time by writing a wrapper for the web service call in VB.NET (or C#), and 
exposing this to your foxpro project through COM interop.

Eyvind.

-Opprinnelig melding-
Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne av Aida I. 
Rivera-Benítez, MSMIS
Sendt: 9. november 2007 04:10
Til: 'ProFox Email List'
Emne: RE: VFP9 SOAP/WSDL Blues revisited

Well ...I have my webservices and they are almost working but...
still have the certificate problem when sending the actual file
It says the SSL Certificate common name (home name field) is
Incorrect.

They send me the following code to bypass the certificate apparently 
In Visual Basic.

Create a class like the following:
Public Class MyPolicy
Implements ICertificatePolicy
Public Function CheckValidationResult(ByVal srvPoint As ServicePoint, _
ByVal cert As X509Certificate, ByVal request As WebRequest, _
ByVal certificateProblem As Integer) _
As Boolean Implements ICertificatePolicy.CheckValidationResult
Return True
End Function
End Class

When you proceed to call the web service, before creating the web reference
instance,
Create an instance of the web reference, create an intance of the class:
System.Net.ServicePointManager.CertificatePolicy = New MyPolicy
And then proceed to use the web service.

I tried to translate this to VFP but is giving errors everywhere.
Can somebody help me with this code?

Regards,

AiR




[excessive quoting removed by server]

___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.


Monthly letters

2007-10-11 Thread Eyvind Axelsen
The monthly letters at
http://msdn2.microsoft.com/en-us/vfoxpro/default.aspx seem to have
stopped (the most recent one is from July), has there been a statement
from MS regarding this?

Eyvind.



___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.


RE: [NF] Help Translate Dabo!

2007-08-01 Thread Eyvind Axelsen
-Opprinnelig melding-
Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne av Ed Leafe
Sendt: 31. juli 2007 02:41
Til: ProFox Mailing List
Emne: [NF] Help Translate Dabo!

   Want to contribute to Dabo, but don't feel you understand the inner
workings of the code that well? Do you speak a language other than
English well enough to translate some of the localizable strings from
English to your language? Well, we need you to help localize Dabo for
as many languages as possible. 

About how many words/phrases are there that need to be translated? I could do a 
Norwegian translation, given that you are interested in that and that the 
amount of work is not totally overwhelming.

Eyvind.



___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.


RE: Mailing from Servoy USA for Fox folks

2007-07-12 Thread Eyvind Axelsen
Details, please?

Thanks,

Eyvind.

-Opprinnelig melding-
Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne av Bill Anderson
Sendt: 11. juli 2007 22:25
Til: ProFox Email List
Emne: Re: Mailing from Servoy USA for Fox folks

MB Software Solutions wrote:
 So this Bob Kirsch is scheduled for LA Fox?  You'll have to give us the 
 day-after report!
The one sentence explanation (from another member) -- This is better 
than I expected it to be.

Based on what I saw, I was favorably impressed.

Bill




[excessive quoting removed by server]

___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.


Re: VFP9 - cursortoxml

2007-06-13 Thread Eyvind Axelsen
An xsl is not the schema (while an xsd file is). The xsl is a style sheet, that 
as you mention allows for a browser to pretty-print the xml. To use an xsl 
style sheet, include a line like the following at the top (after the ?xml 
version=...? tag) of the xml file:
?xml-stylesheet type=text/xsl href=your_xsl_file_here.xsl?

For example:

?xml version=1.0 encoding=ISO-8859-1?
?xml-stylesheet type=text/xsl href=simple.xsl?
breakfast_menu
  food
nameBelgian Waffles/name
price$5.95/price
description
   two of our famous Belgian Waffles
/description
calories650/calories
  /food
/breakfast_menu

And the corresponding xsl:

?xml version=1.0 encoding=ISO-8859-1?
html xsl:version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; 
xmlns=http://www.w3.org/1999/xhtml;
  body style=font-family:Arial,helvetica,sans-serif;font-size:12pt;
background-color:#EE
xsl:for-each select=breakfast_menu/food
  div style=background-color:teal;color:white;padding:4px
span style=font-weight:bold;color:white
xsl:value-of select=name//span
- xsl:value-of select=price/
  /div
  div style=margin-left:20px;margin-bottom:1em;font-size:10pt
xsl:value-of select=description/
span style=font-style:italic
  (xsl:value-of select=calories/ calories per serving)
/span
  /div
/xsl:for-each
  /body
/html

From http://w3schools.com/xml/xml_xsl.asp.

Now, show me the money! g

Eyvind.

-Opprinnelig melding-
Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne av Sytze de Boer
Sendt: 13. juni 2007 00:11
Til: profox@leafe.com
Emne: VFP9 - cursortoxml

I previously posted a question re converting a small stand-a-lone dbf
to xml file, using a schema (xsl file) supplied by my client.

Creating an xml file is simple
What I can't get my head around is to use the schema thingee to ALSO
produce the xml file in a format so that when you double click on it,
it looks all neatly formatted.
almost like a (frx) report from a color printer.

Is there someone here who is prepared to assist me conclude this process.
I am willing to PAY for the help you provide.

Regards
Sytze


[excessive quoting removed by server]

___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.


Re: VFP9 - cursortoxml

2007-06-13 Thread Eyvind Axelsen
I have not worked with the XMLAdapter, so I am afraid I can't help you much 
with that, but here's a sample xml schema that validates against your example - 
hope it helps!

?xml version=1.0 encoding=UTF-8 standalone=yes?
!--W3C Schema generated by XMLSpy v2006 sp2 U (http://www.altova.com)--
xs:schema xmlns:xs=http://www.w3.org/2001/XMLSchema; 
elementFormDefault=qualified
xs:element name=articulo type=xs:long/
xs:element name=cambio
xs:complexType
xs:sequence
xs:element ref=articulo/
xs:element ref=origen/
xs:element ref=destino/
xs:element ref=cantidad/
/xs:sequence
/xs:complexType
/xs:element
xs:element name=cantidad type=xs:int/
xs:element name=destino type=xs:long/
xs:element name=origen type=xs:long/
xs:element name=xml
xs:complexType
xs:sequence
xs:element ref=cambio maxOccurs=unbounded/
/xs:sequence
/xs:complexType
/xs:element
/xs:schema

Eyvind.

-Opprinnelig melding-
Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne av Rafael Copquin
Sendt: 13. juni 2007 10:45
Til: profox@leafe.com
Emne: Re: VFP9 - cursortoxml

Hi Eyvind

You seem to know how to create a schema in VFP 9

I want to use the xmladapter class with the following xmlfile, that I have to 
convert into a vfp cursor

xml
  cambio
articulo77980147641323/articulo
origen7798777649871/origen
destino7798121754621/destino
cantidad1/cantidad
  /cambio
  cambio
articulo4258574764577/articulo
origen7358574764745/origen
destino7798133754965/destino
cantidad7/cantidad
  /cambio
/xml

I need the structure of the generated cursor to be:

articulo N(13)
origen   N(13)
destino N(13)
cantidad N(4)

The above represents a quantity (cantidad) of a stock item (articulo) that is 
moved from one position on the shelf (origen) to another position on another 
shelf (destino).The values in those fields are the bar codes read from a data 
collector device

Would you kindly show me how the schema would look like?

And the commands necessary to generate this cursor using the xmladapter class 
with the schema?

I could use the xmltocursor function, but noticed that if the xml file contains 
only one record and the value in the CANTIDAD field is either a 1 or a 0, the 
field generated is of type logic, placing a .T. or a .F. instead of the 1 or 
the 0

Thank you very much in advance

Rafael Copquin

  - Original Message - 
  From: Eyvind Axelsen 
  To: [EMAIL PROTECTED] 
  Sent: Wednesday, June 13, 2007 4:20 AM
  Subject: Re: VFP9 - cursortoxml


  An xsl is not the schema (while an xsd file is). The xsl is a style sheet, 
that as you mention allows for a browser to pretty-print the xml. To use an xsl 
style sheet, include a line like the following at the top (after the ?xml 
version=...? tag) of the xml file:
  ?xml-stylesheet type=text/xsl href=your_xsl_file_here.xsl?

  For example:

  ?xml version=1.0 encoding=ISO-8859-1?
  ?xml-stylesheet type=text/xsl href=simple.xsl?
  breakfast_menu
food
  nameBelgian Waffles/name
  price$5.95/price
  description
 two of our famous Belgian Waffles
  /description
  calories650/calories
/food
  /breakfast_menu

  And the corresponding xsl:

  ?xml version=1.0 encoding=ISO-8859-1?
  html xsl:version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; 
xmlns=http://www.w3.org/1999/xhtml;
body style=font-family:Arial,helvetica,sans-serif;font-size:12pt;
  background-color:#EE
  xsl:for-each select=breakfast_menu/food
div style=background-color:teal;color:white;padding:4px
  span style=font-weight:bold;color:white
  xsl:value-of select=name//span
  - xsl:value-of select=price/
/div
div style=margin-left:20px;margin-bottom:1em;font-size:10pt
  xsl:value-of select=description/
  span style=font-style:italic
(xsl:value-of select=calories/ calories per serving)
  /span
/div
  /xsl:for-each
/body
  /html

  From http://w3schools.com/xml/xml_xsl.asp.

  Now, show me the money! g

  Eyvind.



--- StripMime Report -- processed MIME parts ---
multipart/alternative
  text/plain (text body -- kept)
  text/html
---

[excessive quoting removed by server]

___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise

RE: VFP9 - cursortoxml

2007-06-13 Thread Eyvind Axelsen
XML schemas are not that difficult to understand once you get over the initial 
learning barrier. A starting point could be 
http://www.w3schools.com/schema/default.asp. However, if you are going to work 
more than a little bit with XML, I would highly recommend getting hold of a 
tool for the purpose. As you can see from the comment in the example below, I 
use xml spy from altova, and I find it very helpful in dealing with xml files, 
schemas etc.

Eyvind.

-Opprinnelig melding-
Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne av Rafael Copquin
Sendt: 13. juni 2007 13:04
Til: profox@leafe.com
Emne: Re: VFP9 - cursortoxml

Gee, that's very good !!

I have no clue on how you did that, but I will use it and see if this is what I 
need.

BTW, where can I read what is necessary to understand this schema thing and how 
to accomplish what you did, on my own? I read the VFP9 help on this subject, 
but it shows no examples and deciphering the meaning, at least to a newbie on 
XML as me, is a humongous task!!

Rafael

  - Original Message - 
  From: Eyvind Axelsen 
  To: [EMAIL PROTECTED] 
  Sent: Wednesday, June 13, 2007 7:51 AM
  Subject: Re: VFP9 - cursortoxml


  I have not worked with the XMLAdapter, so I am afraid I can't help you much 
with that, but here's a sample xml schema that validates against your example - 
hope it helps!

  ?xml version=1.0 encoding=UTF-8 standalone=yes?
  !--W3C Schema generated by XMLSpy v2006 sp2 U (http://www.altova.com)--
  xs:schema xmlns:xs=http://www.w3.org/2001/XMLSchema; 
elementFormDefault=qualified
  xs:element name=articulo type=xs:long/
  xs:element name=cambio
  xs:complexType
  xs:sequence
  xs:element ref=articulo/
  xs:element ref=origen/
  xs:element ref=destino/
  xs:element ref=cantidad/
  /xs:sequence
  /xs:complexType
  /xs:element
  xs:element name=cantidad type=xs:int/
  xs:element name=destino type=xs:long/
  xs:element name=origen type=xs:long/
  xs:element name=xml
  xs:complexType
  xs:sequence
  xs:element ref=cambio maxOccurs=unbounded/
  /xs:sequence
  /xs:complexType
  /xs:element
  /xs:schema

  Eyvind.

  -Opprinnelig melding-
  Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne av Rafael Copquin
  Sendt: 13. juni 2007 10:45
  Til: profox@leafe.com
  Emne: Re: VFP9 - cursortoxml

  Hi Eyvind

  You seem to know how to create a schema in VFP 9

  I want to use the xmladapter class with the following xmlfile, that I have to 
convert into a vfp cursor

  xml
cambio
  articulo77980147641323/articulo
  origen7798777649871/origen
  destino7798121754621/destino
  cantidad1/cantidad
/cambio
cambio
  articulo4258574764577/articulo
  origen7358574764745/origen
  destino7798133754965/destino
  cantidad7/cantidad
/cambio
  /xml

  I need the structure of the generated cursor to be:

  articulo N(13)
  origen   N(13)
  destino N(13)
  cantidad N(4)

  The above represents a quantity (cantidad) of a stock item (articulo) that is 
moved from one position on the shelf (origen) to another position on another 
shelf (destino).The values in those fields are the bar codes read from a data 
collector device

  Would you kindly show me how the schema would look like?

  And the commands necessary to generate this cursor using the xmladapter class 
with the schema?

  I could use the xmltocursor function, but noticed that if the xml file 
contains only one record and the value in the CANTIDAD field is either a 1 or a 
0, the field generated is of type logic, placing a .T. or a .F. instead of the 
1 or the 0

  Thank you very much in advance

  Rafael Copquin

- Original Message - 
From: Eyvind Axelsen 
To: [EMAIL PROTECTED] 
Sent: Wednesday, June 13, 2007 4:20 AM
Subject: Re: VFP9 - cursortoxml


An xsl is not the schema (while an xsd file is). The xsl is a style sheet, 
that as you mention allows for a browser to pretty-print the xml. To use an xsl 
style sheet, include a line like the following at the top (after the ?xml 
version=...? tag) of the xml file:
?xml-stylesheet type=text/xsl href=your_xsl_file_here.xsl?

For example:

?xml version=1.0 encoding=ISO-8859-1?
?xml-stylesheet type=text/xsl href=simple.xsl?
breakfast_menu
  food
nameBelgian Waffles/name
price$5.95/price
description
   two of our famous Belgian Waffles
/description
calories650/calories
  /food
/breakfast_menu

And the corresponding xsl:

?xml version=1.0 encoding=ISO-8859-1?
html xsl:version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; 
xmlns=http://www.w3.org/1999/xhtml;
  body style=font-family:Arial,helvetica,sans-serif;font-size:12pt;
background-color:#EE
xsl:for-each select=breakfast_menu/food
  div style=background-color:teal;color:white;padding:4px
span style=font-weight:bold;color:white
xsl:value-of select=name

RE: VFP to XML

2007-05-30 Thread Eyvind Axelsen
Virgil,

PMFJI, but it seems to me that you should indeed change the code you use to 
produce your XML. I looked at an example from the site you mentioned, and the 
xml looks like this:

markers
marker lat=43.65654 lng=-79.90138 html=Some stuff to display in 
thelt;brgt;First Info Window  label=Marker One /
marker lat=43.91892 lng=-78.89231 html=Some stuff to display in 
thelt;brgt;Second Info Window label=Marker Two /
marker lat=43.82589 lng=-79.10040 html=Some stuff to display in 
thelt;brgt;Third Info Window  label=Marker Three /
/markers

Your code, however, would as far as I can tell produce something like this:

markers
marker lat=43.65654 lng=-79.90138 html=Some stuff to display in 
thelt;brgt;First Info Window  label=Marker One /marker
marker lat=43.91892 lng=-78.89231 html=Some stuff to display in 
thelt;brgt;Second Info Window label=Marker Two /marker
marker lat=43.82589 lng=-79.10040 html=Some stuff to display in 
thelt;brgt;Third Info Window  label=Marker Three /marker
/markers

The difference is, as you no doubt can tell, that in the first example the lat, 
lng etc are attributes of the marker tag, while in your code they would be just 
text enclosed by the tag. Also, the problem with quotes inside the attribute 
values is a valid concern.

Regards,

Eyvind.


-Opprinnelig melding-
Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne av Virgil Bierschwale
Sendt: 30. mai 2007 13:37
Til: 'ProFox Email List'
Emne: RE: VFP to XML

Yep, I've tried it and I use it.
Yep, the place that I found all info at is located at
http://www.econym.demon.co.uk/googlemaps/index.htm

I'm not going to go tit for tat with you, but I've been in this business
quite a long time and one thing that I've learned is that there are a lot of
different ways to accomplish the same thing.

In other words, there is no right nor wrong way to develop software and to
insinuate that only your way is the way is beyond belief grin

As for my financial situation, I currently work at 3 jobs, some paid and
some unpaid.

I too used to be an arrogant sob making 67.50 per hour as an contractor
working 60 plus hour weeks until the work went overseas and I couldn't find
anymore.

It has humbled me a bit.

Lets hope that it doesn't happen to you.

Virgil Bierschwale
http://www.bierschwale.com
http://www.bierschwalesolutions.com


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Derek Kalweit
Sent: Tuesday, May 29, 2007 9:38 AM
To: ProFox Email List
Subject: Re: VFP to XML

 As for this not working, have you tried it ?
 I'm sure that you will find that it creates the xml file that google map
 needs exactly and with minor modification, it will create other xml files.

Have **you** tried it? The code you posted creates marker/marker
elements with text inside it, instead of the xml attributes that
Google Maps(and generally XML-enabled applications) utilize. No, I
haven't loaded this into Google Maps itself(I don't have your data
source to test if I chose to waste my time doing so), but if it works,
it's a bug/undocumented 'feature' in Google Maps and you can't expect
it to keep working.


 I just believe in learning from others mistakes instead of trying to
 reinvent the wheel every time.

Writing a text file like this is not the generally-accepted best way
to write XML files, generally. The more accepted way is a DOM-based
XML parser, such as MSXML. Occasionally writing to the text file
directly such as you do is useful if you have very large files, but
IMO, those aren't a good candidate for xml in the first place. Not all
XML files are as primitive as the one you have-- many are multiple
levels deep.


I'm sorry to hear about your financial woes. Possibly it would be
smarter for your financial situation to find a job(any job) to pay
some bills instead of doing websites for non-profits, etc.?


-- 
Derek


[excessive quoting removed by server]

___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.


RE: VFP to XML

2007-05-30 Thread Eyvind Axelsen
Virgil,

The problem lies in the following line:

response.write(marker)

The marker tag should not be closed (with a ) before you write the 
attributes. Try something like this instead:

while (not oRS.EOF)
response.write(marker )
write attributes here...
response.write( /)   
oRS.MoveNext()
wend

Still not nearly fool proof, but better. The attribute values (i.e. the data 
coming from oRS(svclatitude)) should also be enclosed in quotation marks (). 
The result on your webpage is not XML the way most people do it, and while it 
might work, I wouldn't count on it continuing to do so.

The XML DOM object that was mentioned earlier might be a bit harder to 
understand at first, but it will make your (XML related) life a lot easier when 
you do.

Eyvind.

-Opprinnelig melding-
Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne av Virgil Bierschwale
Sendt: 30. mai 2007 16:37
Til: 'ProFox Email List'
Emne: RE: VFP to XML

Agreed..
Problem was the example I sent was just that as I was in the process of
making it work.

The actual code is listed here.
You can see it in action by clicking here --
http://www.virgilslist.com/get1059.asp


qry = SELECT svclatitude, svclongitude, svcrate + ' ' +
svcfirstname + ' ' + svclastname AS htmldesc, svcrate + ' ' + svclastname AS
labeldesc, 'enlisted' as titledesc from Roster WHERE svcBranch = 'NAVY' 
Set oRS = oConn.Execute(qry)

oRS.MoveFirst()

response.write(?xml version='1.0' encoding='ISO-8859-1'?)
response.write(markers)
while (not oRS.EOF)
response.write(marker)
response.write(lat=  oRS(svclatitude)   )
response.write(lng=  oRS(svclongitude)   )
response.write(html=  oRS(htmldesc)   )
response.write(label=  oRS(labeldesc)   )

response.write(title=  oRS(titledesc)   )   
response.write(/marker) 
oRS.MoveNext()
wend

oRS.close()
oConn.close()
response.write(/markers)

Virgil Bierschwale
http://www.bierschwale.com
http://www.bierschwalesolutions.com


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Eyvind Axelsen
Sent: Wednesday, May 30, 2007 9:34 AM
To: ProFox Email List
Subject: RE: VFP to XML

Virgil,

PMFJI, but it seems to me that you should indeed change the code you use to
produce your XML. I looked at an example from the site you mentioned, and
the xml looks like this:

markers
marker lat=43.65654 lng=-79.90138 html=Some stuff to display in
thelt;brgt;First Info Window  label=Marker One /
marker lat=43.91892 lng=-78.89231 html=Some stuff to display in
thelt;brgt;Second Info Window label=Marker Two /
marker lat=43.82589 lng=-79.10040 html=Some stuff to display in
thelt;brgt;Third Info Window  label=Marker Three /
/markers

Your code, however, would as far as I can tell produce something like this:

markers
marker lat=43.65654 lng=-79.90138 html=Some stuff to display in
thelt;brgt;First Info Window  label=Marker One /marker
marker lat=43.91892 lng=-78.89231 html=Some stuff to display in
thelt;brgt;Second Info Window label=Marker Two /marker
marker lat=43.82589 lng=-79.10040 html=Some stuff to display in
thelt;brgt;Third Info Window  label=Marker Three /marker
/markers

The difference is, as you no doubt can tell, that in the first example the
lat, lng etc are attributes of the marker tag, while in your code they would
be just text enclosed by the tag. Also, the problem with quotes inside the
attribute values is a valid concern.

Regards,

Eyvind.


-Opprinnelig melding-
Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne av
Virgil Bierschwale
Sendt: 30. mai 2007 13:37
Til: 'ProFox Email List'
Emne: RE: VFP to XML

Yep, I've tried it and I use it.
Yep, the place that I found all info at is located at
http://www.econym.demon.co.uk/googlemaps/index.htm

I'm not going to go tit for tat with you, but I've been in this business
quite a long time and one thing that I've learned is that there are a lot of
different ways to accomplish the same thing.

In other words, there is no right nor wrong way to develop software and to
insinuate that only your way is the way is beyond belief grin

As for my financial situation, I currently work at 3 jobs, some paid and
some unpaid.

I too used to be an arrogant sob making 67.50 per hour as an contractor
working 60 plus hour weeks until the work went overseas and I couldn't find
anymore.

It has humbled me a bit.

Lets hope that it doesn't happen to you.

Virgil Bierschwale
http://www.bierschwale.com
http://www.bierschwalesolutions.com


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Derek Kalweit
Sent: Tuesday, May 29, 2007 9:38 AM
To: ProFox Email List
Subject: Re: VFP to XML

Re: Sending mail from VFP w/o mailto

2007-04-06 Thread Eyvind Axelsen
If you can use the .Net 2.0 framework (either through COM interop or the 
etecnologia extender), the System.Net.Mail namespace has got all you need. A 
simple example:

SmtpClient smtpClient = new SmtpClient(smtp.someserver.com);
smtpClient.Credentials = new NetworkCredential(username, password);

MailMessage mail = new MailMessage(new MailAddress([EMAIL PROTECTED]), new 
MailAddress([EMAIL PROTECTED]));

mail.Body = myBodyString;
mail.IsBodyHtml = true; // or false
mail.Subject = Subject goes here;
smtpClient.Send(mail);


Eyvind.

-Opprinnelig melding-
Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne av Whil Hentzen (Pro*)
Sendt: 5. april 2007 18:53
Til: profox@leafe.com
Emne: Sending mail from VFP w/o mailto

Hi folks,

I have inherited (ahem...) an app that includes a rudimentary email 
function in one of its modules. It uses the 'mailto' and shellexecute 
functions in Windows, primarily because the app used to be x-plat and 
thus couldn't rely on Windows-only solutions.

The Windows part of the call looks like this:

m.mailcommand = mailto:; + m.realname +  + m.emailaddress +  + 
?subject= + m.subject + body= + m.message

declare integer ShellExecute in shell32.dll...
declare integer FindWindow in WIN32API...
=ShellExecute(FindWindow())

It works fine for short messages (@1000 bytes), but now they want to 
send big ol' messages, like 10K to 20K. This current mechanism is 
truncating those messages (I think at 1024.)

My options are...

Door #1: Find a way to use the current mechanism but allow it to use 
much longer messages - that's your first question.

Door #2: Find a different, Windows OS-only solution.

Door #3: Incorporate a third party utility such as BLAT (which I've seen 
talked about here oodles) or ipstuff.

It'd be great if I could just alter the syntax of the current mechanism 
to be able to include longer messages, but I don't know enough about how 
that works to determine if it's a native limit or something artificial 
imposed by this app.

Whil


[excessive quoting removed by server]

___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.


Re: Another life after VFP thread?

2007-03-23 Thread Eyvind Axelsen
-Opprinnelig melding-
Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne av Michael Hawksworth

 VFP 9  Sedna for the next few years (can't just dump over a million 
lines of code) 

Personally, I'm very excited to see what will come out of the effort from 
eTechnologica.net and their VFP -- .NET compiler. Will it be too little too 
late, or salvation?

Eyvind.


___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.


Re: [Fwd: Latest Preview of Visual FoxPro Ships]

2007-03-07 Thread Eyvind Axelsen

-Opprinnelig melding-
Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne av Stephen the Cook


 I read through the functions they are exposing and was under whelmed. If you
could put a .dll into a fox project and consume functions within, then you
have a winner.  What you got was peanut shells off the floor at the tacky
steak restaurant.  


I agree. Have you seen the offering from Etecnologica? They promise to deliver 
just that: use all the functionality from .NET without the hassle of COM. 
Haven't tried it, though.

Eyvind.


___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.


Re: [Fwd: Latest Preview of Visual FoxPro Ships]

2007-03-06 Thread Eyvind Axelsen
 Opprinnelig melding-
Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne av Stephen the Cook

 Any idea which version of the . ??? Sedna fits in with?  Will it be ver 2,
or the to be released probably next year 3? 

Version 3 of the .NET FX has been released, actually. Check it out here: 
http://msdn2.microsoft.com/en-us/netframework/default.aspx and download it 
here: 
http://www.microsoft.com/downloads/details.aspx?familyid=10CC340B-F857-4A14-83F5-25634C3BF043displaylang=en

The 3.0 version is actually just a set of classes that runs on the 2.0 version, 
so in order to run apps for version 3, you need to have version 2 installed. 
Kind of odd, me thinks...

Anyway, since the 3.0 framework is just 2.0 with some new classes, Sedna should 
work equally well with both the 3.0 and the 2.0 frameworks.

Eyvind.




___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.


Re: Storing code in a table

2007-01-18 Thread Eyvind Axelsen
 Are you running VFP9? EXECSCRIPT() should do the trick without a
tempfile. 

I don't think that is entirely correct. I believe ExecScript does indeed
create a tempfile (so your users will need write permissions to the temp
directory), but you won't have to handle the creation and compilation of
the temp file yourself.

Eyvind.


___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.


Re: .NET Extender for VFP VFP Compiler for .Net

2007-01-03 Thread Eyvind Axelsen
Damn! That sure looks interesting, let's hope they can live up to their claims 
=)

Eyvind.

-Opprinnelig melding-
Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne av Michael Hawksworth
Sendt: 3. januar 2007 09:38
Til: Profox
Emne: .NET Extender for VFP  VFP Compiler for .Net

Has anyone had a look at the above from www.etecnologia.net?

This looks like the work MS should have been doing.

-- 
Michael Hawksworth
Visual Fox Solutions

[EMAIL PROTECTED]
www.foxpro.co.uk





[excessive quoting removed by server]

___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.


Re: [NF] ANN: Dabo 0.7 released!

2006-11-22 Thread Eyvind Axelsen
   If I could conceive of a better language than Python, I would
indeed  
create it. But IMO, Python is as good as it gets! 

Say what? Python (like every other language that I have seen) have loads
of flaws and annoyances. I find it hard to believe that you really think
that Python is as good as it can get.

Congrats on the Dabo release, btw!

Eyvind.


___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.


Re: [NF] ANN: Dabo 0.7 released!

2006-11-22 Thread Eyvind Axelsen
 I didn't say it was perfect, did I? 

Well, maybe its just my English, but I believe you did: 

 Python is as good as it gets! 

paired with 

 If I could conceive of a better language than Python, I would indeed
create it 

tells me you think it is perfect. Obviously, if Python did indeed have
flaws, the Python minus all the flaws-language would have been better,
now wouldn't it? To go ahead and actually write it, well that's another
deal altogether, but to conceive it - sure I can!

Eyvind.


___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.


0xIDE / xBase++ / IronPython

2006-11-01 Thread Eyvind Axelsen
http://homepages.ihug.com.au/~garys/

This guy has created a tool that translates xBase++ code to executable
IronPython code. Quite cool, and one would think it should be doable for
VFP as well.

Eyvind.


___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.


SV: Walk the treeview

2006-10-09 Thread Eyvind Axelsen
This sounds like a typical application for a recursive procedure that walks the 
child nodes of a given node. If you have a limited amount of items and are 
using VFP9, you can use increase the STACKSIZE parameter in your config.fpw 
file. It's a shame that the fox is not better suited for recursivity.

Good luck!

Eyvind.

-Opprinnelig melding-
Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne av Paul Newton
Sendt: 7. oktober 2006 23:22
Til: ProFox
Emne: Walk the treeview

Hi all

I now have a treeview with all nodes expanded and I want to traverse the 
tree from top to bottom, node-by-node in the order in which they are 
displayed.

I want to be able to do this without reference to the nodes' keys ir 
index values - IOW a completely generic solution which will work with 
any treeview regardless of the data it contains.

The only caveats are that any given node in the treeview may or may not 
have children and may or may not have siblings.

Because I want a generic solution it should only use node properties 
like children, child, parent, next, previous, firstsibling, lastsibling 
and root.

The idea is to call a form method (WalkTree) with the first/top/root 
node as parameter.  WalkTree will need to be recursive but I am having 
trouble with getting a correctly working implementation.  Any help would 
therefore be highly appreciated.

Tx



[excessive quoting removed by server]

___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.


Re: Walk the treeview - Soluton

2006-10-09 Thread Eyvind Axelsen
To understand recursion, you must first understand recursion =)

Eyvind.

-Opprinnelig melding-
Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne av Dave Crozier
Sendt: 9. oktober 2006 12:35
Til: 'ProFox Email List'
Emne: RE: Walk the treeview - Soluton

And of course if you look it up in the dictionary:

Recursion /ree-ker'-zhon/: See Recursion. 

Oldies but goldies!

Dave Crozier
 The secret to staying young is to live honestly, eat slowly, and to lie
about your age 

 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Paul Newton
Sent: 09 October 2006 11:11
To: profox@leafe.com
Subject: Re: Walk the treeview - Soluton

Eyvind Axelsen wrote:
 This sounds like a typical application for a recursive procedure that
walks the child nodes of a given node. If you have a limited amount of items
and are using VFP9, you can use increase the STACKSIZE parameter in your
config.fpw file. It's a shame that the fox is not better suited for
recursivity.

 Good luck!

 Eyvind.

   
OK - got it:

PARAMETERS nodeParent

*!* Walks the specified source parent treeview node,
*!* and all of its children nodes
*!*
*!* nodeParent: parent node to walk

LOCAL nodeChild As Node

nodeParent.Selected = .T.
WAIT WINDOW TIMEOUT 1

*!* Get the current parent node's first child nodeChild = nodeParent.Child

*!* Now walk through the current parent node's children

DO WHILE Not ISNULL(nodeChild)

*!* If the current child node has its own children...
If nodeChild.Children  0

*!* Recursively DO this proc walking the child node
*!* (which becomes the new parent node)
THISFORM.WalkTree(nodeChild)

Else

*!* Process the child node
nodeChild.Selected = .T.
WAIT WINDOW TIMEOUT 1

ENDIF

*!* Get the current child node's next sibling
nodeChild = nodeChild.Next

ENDDO

RETURN





[excessive quoting removed by server]

___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.


Re: VFP at MSDN

2006-09-06 Thread Eyvind Axelsen
Seems so.

-Opprinnelig melding-
Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne av Ailsom F. Heringer 
(Osklen)
Sendt: 6. september 2006 17:26
Til: ProFox Email List
Emne: VFP at MSDN

I can´t reach VFP at Msdn. Is it down ?

http://msdn.microsoft.com/vfoxpro

-- 
Aílsom F. Heringer
[EMAIL PROTECTED]
Skype: ailsom.osklen
Analista de Sistemas
--
Osklen
Departamento de Informática
Rio de Janeiro - RJ
BRASIL
http://www.osklen.com.br
55 21 22198971




[excessive quoting removed by server]

___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.


Re: Advice needed on web interface.

2006-08-29 Thread Eyvind Axelsen
ASP.NET can talk to (read/update) VFP tables through the VFP OLE DB provider.

-Opprinnelig melding-
Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne av Alan Bourke
Sendt: 29. august 2006 13:59
Til: profox@leafe.com
Emne: Advice needed on web interface.

We have a client with an existing networked membership application
written in VFP8.

They want to add a web interface to this. It would basically replicate a
couple of forms and put them online, writing back to the VFP database.

If the web hosting was done offsite, I would envisage using an ASP.NET
setup writing to a local SQL database for the web part. What I need to
do is have the web side update the VFP database at the customer's office
in realtime or near as dammit. What would be the best way to do that?
-- 
  Alan Bourke
  [EMAIL PROTECTED]

-- 
http://www.fastmail.fm - Send your email first class



[excessive quoting removed by server]

___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.


Re: multithreading in VFP

2006-07-25 Thread Eyvind Axelsen
Calvin Hsia from the FoxPro developer team has some advice:

http://blogs.msdn.com/calvin_hsia/archive/2006/05/16/599108.aspx

This, however, is quite involved. Perhaps you are better off using some other 
language if you plan on doing a lot of multithreading.

Eyvind.

-Opprinnelig melding-
Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne av Anh, Ta Ngoc 
(PIACOM)
Sendt: 25. juli 2006 06:05
Til: 'ProFox Email List'
Emne: multithreading in VFP

Hi everybody.
I want to buit multithreading application. But in VFP, I don't know how to
use multithreading. Anyone can help me. Thanks for your help.


[excessive quoting removed by server]

___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.


Re: Strong parameter checking

2006-06-28 Thread Eyvind Axelsen
-Opprinnelig melding-
Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne av Ed Leafe

 As Bruce Eckel stated, strong testing, not strong typing. 

The two are not mutually exclusive, and why have only one when you can have 
both?

The compiler does not lead to a false feeling of security, because we as 
professional developers understand what sort of errors the compiler can catch, 
and we can develop appropriate (unit) tests for the rest. 

Eyvind.


___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.


Re: Strong parameter checking

2006-06-28 Thread Eyvind Axelsen
-Opprinnelig melding-
Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne av Dominic Burford

And there is likely to be more time available for testing due to the quicker 
development times that weakly types languages are capable of. 

I would say that this is highly dependant on the type of application that you 
are making. I have worked with both weakly and strongly typed languages, and I 
must say that for large projects involving multiple developers and changing 
requirements, strong, static typing speeds things up, simply because 
refactoring is so much easier to do.

Furthermore, IMO, static (as opposed to just strong) typing is very valuable 
for intellisense, which is able to provide a lot more info in than in a 
language with weak/dynamic typing, and this alone can speed up development 
considerably.

Eyvind


___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.


Re: Strong parameter checking

2006-06-28 Thread Eyvind Axelsen
-Opprinnelig melding-
Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne av Dominic Burford
Sendt: 28. juni 2006 14:04
Til: ProFox Email List
Emne: RE: Strong parameter checking

 I'm curious to find out how.  I would have thought a strongly typed language 
would have been *more* difficult to refactor, for the same rasons that it can 
take longer to develop using them i.e. they can prevent certain object 
interactions due to their enforcement of data types, and thus leads to 
additional code being written which conforms to these constraints. 

True, but on the other hand, if you change, say, a method signature, a compiler 
can spot every place in which a change is needed. Furthermore, if you change 
the name of a function or class member or the order in which parameters are 
sent to a function, a tool such as VS can do the refactoring for you 
automatically.

Still, I guess the answer to the question of development speed and 
strong/static vs weak typing is: it depends =)

Eyvind.


___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.


Re: Strong parameter checking

2006-06-26 Thread Eyvind Axelsen
 Indeed! Especially when you after having used the function/method in
 quite a few places need to refactor the damn thing, and change, say,
 parameter types...

Is that a problem for you?  So sorry.  I just go and do a refactor for
it, and I am presented with all the occurrences.  VS2005 is really
great in adding that.  :)

That's exactly what I meant - at times I _really_ hate VS 2005
(especially the [EMAIL PROTECTED] designer), but the refactoring bit is 
brilliant
(and as good as impossible to implement in a dynamic language without
static type checking).

Eyvind.


[excessive quoting removed by server]

___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.


[NF] IronPython

2006-06-26 Thread Eyvind Axelsen
Has anyone used it? Ed or Paul, perhaps? If so, do you have a gut
feeling or more regarding its stability?

We are considering using it as an embedded scripting language in our
.NET 2.0 app.

Thanks,

Eyvind.


___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.


Re: [NF] IronPython

2006-06-26 Thread Eyvind Axelsen

-Opprinnelig melding-
Fra: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] På vegne av Ed Leafe

 It wasn't designed to be a complete re-write of Python,  
since Python already runs great on Windows, but rather a wrapping of  
the .Net classes. 

Actually, I think you are wrong on that (maybe they changed their minds along 
the way). From http://www.codeplex.com/Wiki/View.aspx?ProjectName=IronPython:

IronPython is the code name of the new implementation of the Python 
programming language running on .NET. It supports an interactive console with 
fully dynamic compilation. It is well integrated with the rest of the .NET 
Framework and makes all .NET libraries easily available to Python programmers, 
while maintaining full compatibility with the Python language.

It seems to me that this means that most of Python will be in there when 
version 1.0 is (supposedly) released this summer.

Eyvind.



___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.