Article View: borland.public.vdbase.forms
Article #77Re: Internet link
From: Gary White [dBVIPS]
Date: Sat, 17 Apr 1999 00:00
Date: Sat, 17 Apr 1999 00:00
36 lines
1864 bytes
1864 bytes
On Fri, 16 Apr 1999 22:30:58 +0200, Peter van Mierlo wrote:
> * The form contains the entryfield NetHTTP where the internet page is
> stored, so :
> * I declare the value form Form.Entryfield_NetHTTP to the var. cURL
> cURL=Form.Entryfield_NetHTTP.Value
> OpenUrl(cURL)
>
> VDB will now display the message 'Datatype mismatch: Expecting
> character"
>
> Where am I going wrong....can't you use the cURL variable ?
Your code looks like it should work, assuming the two lines above are
inside the same function/procedure, and that that function/procedure
is between the CLASS/ENDCLASS statements of the form. You might want
to double check for typo's. If that all looks right, try:
cURL=Form.Entryfield_NetHTTP.Value
msgbox( "cURL = " + cURL + chr(13) + ;
"Data type is: "+type( cURL) )
OpenUrl(cURL)
Note that for the TYPE() function to work, cURL must be PRIVATE, or
PUBLIC. This should NOT be required for the function to work, so you
may want to change it to a PRIVATE for debugging purposes and then
change it back to LOCAL once it's working.
Please move to the dBASE2000 News Groups at
news://news.dbase2000.com
as soon as possible The groups here will close very soon.
Gary White [dBVIPS]
Some dBASE Stuff at
http://www.AppTools.com/dbase
Technical Details
Message-ID:
<3717d469.98051049@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<3713A538.A871EC9@wxs.nl> <3716CA00.A1B36B9D@ibm.net> <37179E02.1E2061C3@wxs.nl>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 15bdfb,90aa4d98f4d7cd7a X-Google-Attributes: gid15bdfb,public From: dBVIPS@usa.net (Gary White [dBVIPS]) Subject: Re: Internet link Date: 1999/04/17 Message-ID: <3717d469.98051049@forums.borland.com> X-Deja-AN: 467342531 Content-Transfer-Encoding: 7bit References: <3713A538.A871EC9@wxs.nl> <3716CA00.A1B36B9D@ibm.net> <37179E02.1E2061C3@wxs.nl> Content-Type: text/plain; charset=us-ascii Organization: dBVIPS Mime-Version: 1.0 Reply-To: dBVIPS@usa.net Newsgroups: borland.public.vdbase.forms