Opening a Link

This forum is for eXpress++ general support.
Post Reply
Message
Author
omni
Posts: 554
Joined: Thu Jan 28, 2010 9:34 am

Opening a Link

#1 Post by omni »

What is a method for a user to click on a link and it open for them. we download a lot of data and some of the backup may be on an open link to view. The // is an issue on what I have tried.
Ex: https://lp.omni.com/reports/249823984

Thanks
Fred Omni

User avatar
rdonnay
Site Admin
Posts: 4813
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Opening a Link

#2 Post by rdonnay »

Did you try this?

DC_SpawnUrl("https://lp.omni.com/reports/249823984")
The eXpress train is coming - and it has more cars.

User avatar
Tom
Posts: 1234
Joined: Thu Jan 28, 2010 12:59 am
Location: Berlin, Germany

Re: Opening a Link

#3 Post by Tom »

Or in a dialog:

Code: Select all

@ 0,0 DCSAY 'Internet:' GET cURL HYPERLINK {||IF(!Empty(cURL),DC_SpawnUrl(cUrl),NIL)} COLOR GRA_CLR_BLUE,XBPSYSCLR_TRANSPARENT
Best regards,
Tom

"Did I offend you?"
"No."
"Okay, give me a second chance."

omni
Posts: 554
Joined: Thu Jan 28, 2010 9:34 am

Re: Opening a Link

#4 Post by omni »

They don't actually enter it, we have it saved, so its a variable.
If we try to put the field in a variable it says its invalid due to the // in the field, if that makes sense. treats it as a remark.

clink="https://lp.driveroo.com/report/35321825"
will not compile, says newline character...etc
Was trying to use DC_SPAWNURL as we usually do...
Even if we store the saved field to the clink, gives the same message when we get to the DC_SPAWNURL

Fred

"

User avatar
rdonnay
Site Admin
Posts: 4813
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Opening a Link

#5 Post by rdonnay »

That doesn't make sense.
I just created test.prg with the below code.
I compiled and ran it with no problem.

Code: Select all

FUNCTION Main()

LOCAL cLink

cLink := 'https://lp.driveroo.com/report/35321825'

DC_SpawnUrl(cLink)

RETURN nil
The eXpress train is coming - and it has more cars.

omni
Posts: 554
Joined: Thu Jan 28, 2010 9:34 am

Re: Opening a Link

#6 Post by omni »

Did the same test multiple times...over on the far right where I could not see it was another ".
My Idiot time. Of course it worked, like I thought it should.

Thanks, and sorry for your trouble.

User avatar
rdonnay
Site Admin
Posts: 4813
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Opening a Link

#7 Post by rdonnay »

I could not see it was another ".
I have lost several hours of productive time over my 45-year programming career to those damn misplaced quotes.
The eXpress train is coming - and it has more cars.

Post Reply