Mega Search
23.2 Million


Sign Up

Make a donation  
depending on file type ...., a small demo code for 9691  
News Group: comp.soft-sys.app-builder.uniface

on T.U.R.F. I placed some (downloadable) demo uniface code about how to program  dependencies on filetypes nowadays. 
It's based on 9.6.01 and shows the use of $rscan and single-quoted syntax strings in selectcase statement.

See: http://hosted.byjones.net/turf/viewtopic.php?f=8&t=1629

Uli
- Keine Toleranz für Zensur im Internet -

Vote for best question.
Score: 0  # Vote:  0
Date Posted: 25-Jul-2014, at 2:39 AM EST
From: Uli
 
Re: depending on file type ...., a small demo code for 9691  
News Group: comp.soft-sys.app-builder.uniface
Am Freitag, 25. Juli 2014 11:39:46 UTC+2 schrieb Uli:
> on T.U.R.F. I placed some (downloadable) demo uniface code about how to program  dependencies on filetypes nowadays. 
> 
> It's based on 9.6.01 and shows the use of $rscan and single-quoted syntax strings in selectcase statement.
> 
> 
> 
> See: http://hosted.byjones.net/turf/viewtopic.php?f=8&t=1629
> 
> 
> 
> Uli
> 
> - Keine Toleranz für Zensur im Internet -

Hi Geoff,

if you follow the links to the original question, it's about to find out which OCX painted on the form is capable to display the different files.
If it's only about to make the operating system hanle the file, a simple spawn of the file is sufficient to start whatever is associated with the extension.

Uli

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 16-Aug-2014, at 11:25 PM EST
From: Uli
 
Re: depending on file type ...., a small demo code for 9691  
News Group: comp.soft-sys.app-builder.uniface
On 25/07/2014 10:39, Uli wrote:
> on T.U.R.F. I placed some (downloadable) demo uniface code about how to program  dependencies on filetypes nowadays.
> It's based on 9.6.01 and shows the use of $rscan and single-quoted syntax strings in selectcase statement.
>
> See: http://hosted.byjones.net/turf/viewtopic.php?f=8&t=1629

Hi Uli,

There are Windows command line interface commands that allow you to work 
out what the individual Windows machine is set up to use:
assoc - works out the file extensions association
ftype = works out what executable is called for the association

For example, you have:
C:\>assoc .pdf
..pdf=AcroExch.Document

C:\>ftype AcroExch.Document
AcroExch.Document="C:\Program Files (x86)\Adobe\Reader 
10.0\Reader\AcroRd32.exe" "%1"

And you can fire up the associated executable directly by spawning just 
the full filename (extension included).

Cheers

Geoff

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 26-Jul-2014, at 10:08 AM EST
From: Geoff May