Groups > dBase > dBase support > Re: Menu Option to display web page




Re: Menu Option to display web page

Re: Menu Option to display web page
Thu, 7 Feb 2008 13:49:48 -0800
"O. D. Williams" wrote ...
> I've searched the OLH and the newsgroup and the DUFLP and I can't find any

> info on how to do this.  I just want a menu option in my dBase program 
> (2.61.3) that, when clicked, takes the user to a web page.
> Run(true,"MyPage.html") does not work.
> I'm sure somebody has figured this out and I would appreciate any help 
> available.
> -O. D.-

O.D. ;
Here's one possibility.

do openit with "MyPage.html"

And this worked for me too:

do openit with "http://www.rmpc.org/wrapper/index.php"

E.L.

///OpenIt("c:\whatever.txt")

Function Openit(cFilename)

#define SW_SHOWNORMAL 1
#define SW_SHOWMINIMIZED 2
#define SW_SHOWMAXIMIZED 3
#define SW_SHOWNOACTIVATE 4
#define SW_SHOW 5

if type("ShellExecute") #"FP"
  extern cHandle   ShellExecute(cHandle, cstring, cstring, cstring, cstring, 
CINT) shell32 from "ShellExecuteA"
endif
nHandle=ShellExecute(0,"open",cFilename,null,null,SW_SHOWMAXIMIZED)

return nHandle>0

///-- 
//Romain Strieff [dBVIPS]
//http://www.dbase.com/Docs/newsguid.htm

Post Reply
Re: Menu Option to display web page
Thu, 07 Feb 2008 13:51:05 -080
O. D. Williams wrote:
> I've searched the OLH and the newsgroup and the DUFLP and I can't find any
info on how to do this.  I just want a menu option in my dBase program (2.61.3)
that, when clicked, takes the user to a web page.
> 
> Run(true,"MyPage.html") does not work.  
> 
> I'm sure somebody has figured this out and I would appreciate any help
available.

How many times have you been told to check the dUFLP?

Look in MISCAPI.prg in the dUFLP for OpenURL()

Ken

-- 
/(Opinions expressed are purely my own, not those of dataBased
Intelligence, Inc.)/

*Ken Mayer* [dBVIPS]
/Golden Stag Productions/
dBASE at goldenstag dot net
http://www.goldenstag.net/GSP
http://www.goldenstag.net/dbase/dBASEBooks.htm
Post Reply
Menu Option to display web page
Thu, 07 Feb 2008 16:14:57 -050
I've searched the OLH and the newsgroup and the DUFLP and I can't find any info
on how to do this.  I just want a menu option in my dBase program (2.61.3) that,
when clicked, takes the user to a web page.

Run(true,"MyPage.html") does not work.  

I'm sure somebody has figured this out and I would appreciate any help
available.

-O. D.-
Post Reply
Re: Menu Option to display web page
Thu, 07 Feb 2008 23:34:01 -050
Ken Mayer [dBVIPS] Wrote:

> How many times have you been told to check the dUFLP?

Apparently not enough times!(Grin).  I looked in the DUFLP, but just not in that
particular file.  I am building my own list of features that are buried inside
other DUFLP files.  Yes, I know about the DUFLP menu screen.

Thanks, Ken.

-O. D.-
Post Reply
Re: Menu Option to display web page
Thu, 07 Feb 2008 23:36:17 -050
Thanks, Eric .  That's a neat routine.  We need a CD (or DVD) of all Romain
Streif's routines.  

-O. D.-
Post Reply
<< Previous 1 2 3 Next >>
( Page 1 of 3 )
about | contact