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
Opening a Link
Re: Opening a Link
The eXpress train is coming - and it has more cars.
Re: Opening a Link
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."
Tom
"Did I offend you?"
"No."
"Okay, give me a second chance."
Re: Opening a Link
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
"
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
"
Re: Opening a Link
That doesn't make sense.
I just created test.prg with the below code.
I compiled and ran it with no problem.
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.
Re: Opening a Link
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.
My Idiot time. Of course it worked, like I thought it should.
Thanks, and sorry for your trouble.
Re: Opening a Link
I have lost several hours of productive time over my 45-year programming career to those damn misplaced quotes.I could not see it was another ".
The eXpress train is coming - and it has more cars.