Search found 17 matches: shortname

Return to advanced search

Re: "Shortname" for FIELD of DBF

hi Otto,
Otto wrote:I tried ChatGPT

Answer from ChatGPT might work ... but a Hash is not "readable" for Human

as Marc say to change last 2 Sign (of 10) is enough to make it unique for 99 "Header"
by Jimmy
Sat Jan 14, 2023 8:47 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: "Shortname" for FIELD of DBF
Replies: 3
Views: 418

Re: "Shortname" for FIELD of DBF

... which are longer than 10 Sign for FIELD in DBF those "Header" Name can be equal on SUBSTR("Headername",1,10) so i need a "Shortname" did somebody know a Way to get a unique "Shortname" from String which is longer than 10 Sign :?: At first I simply did something ...
by Marc Venken
Sat Jan 14, 2023 4:05 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: "Shortname" for FIELD of DBF
Replies: 3
Views: 418

Re: "Shortname" for FIELD of DBF

... which are longer than 10 Sign for FIELD in DBF those "Header" Name can be equal on SUBSTR("Headername",1,10) so i need a "Shortname" did somebody know a Way to get a unique "Shortname" from String which is longer than 10 Sign There are several ways to create ...
by Otto
Sat Jan 14, 2023 8:46 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: "Shortname" for FIELD of DBF
Replies: 3
Views: 418

"Shortname" for FIELD of DBF

... which are longer than 10 Sign for FIELD in DBF those "Header" Name can be equal on SUBSTR("Headername",1,10) so i need a "Shortname" did somebody know a Way to get a unique "Shortname" from String which is longer than 10 Sign :?:
by Jimmy
Fri Jan 13, 2023 10:58 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: "Shortname" for FIELD of DBF
Replies: 3
Views: 418

Re: Ipads, Android Tablets and Surface RT

Dear Otto,

Apps are the same as applications. Its just a shortname for them.
by Antonio Linares
Mon Jan 28, 2013 9:59 am
 
Forum: Off Topic / Otros temas
Topic: Ipads, Android Tablets and Surface RT
Replies: 1
Views: 620

Re: How to change LongName path to shortName path?

Enrico,

You example works fine because you are previously creating a longname file.

If Silvio does not create it, as he should do, then the Windows API will not work :-)
by Antonio Linares
Mon Nov 09, 2009 12:13 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to change LongName path to shortName path?
Replies: 9
Views: 1221

Re: How to change LongName path to shortName path?

richard-service wrote:? LFN2SFN( "This is a long name" ) --> Empty

Test FWH801


Are you using my sample without changes? If yes, do you want my EXE to test there? I'm using latest FWH.

EMG
by Enrico Maria Giordano
Mon Nov 09, 2009 10:22 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to change LongName path to shortName path?
Replies: 9
Views: 1221

Re: How to change LongName path to shortName path?

Richard,

You need to have a file or a folder with that name in order to get LFN2SFN() working.

It is a Windows API requirement.
by Antonio Linares
Mon Nov 09, 2009 7:47 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to change LongName path to shortName path?
Replies: 9
Views: 1221

Re: How to change LongName path to shortName path?

The following sample works fine here: #include "Fivewin.ch"FUNCTION MAIN()    MEMOWRIT( "This is a long name", "Test" )    ? LFN2SFN( "This is a long name" )    RETURN NIL EMG ? LFN2SFN( "This is a long name" ) --> Empty T...
by richard-service
Mon Nov 09, 2009 3:15 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to change LongName path to shortName path?
Replies: 9
Views: 1221

Re: How to change LongName path to shortName path?

Antonio Linares wrote:Richard,

Is CurDir() returning a long filename ?

Yes, c:\program files
by richard-service
Mon Nov 09, 2009 2:28 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to change LongName path to shortName path?
Replies: 9
Views: 1221

Re: How to change LongName path to shortName path?

The following sample works fine here:

Code: Select all  Expand view
#include "Fivewin.ch"


FUNCTION MAIN()

    MEMOWRIT( "This is a long name", "Test" )

    ? LFN2SFN( "This is a long name" )

    RETURN NIL


EMG
by Enrico Maria Giordano
Sat Nov 07, 2009 10:29 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to change LongName path to shortName path?
Replies: 9
Views: 1221

Re: How to change LongName path to shortName path?

Richard,

Is CurDir() returning a long filename ?
by Antonio Linares
Sat Nov 07, 2009 9:28 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to change LongName path to shortName path?
Replies: 9
Views: 1221

Re: How to change LongName path to shortName path?

Enrico Maria Giordano wrote:Try:

Code: Select all  Expand view
Lfn2Sfn()


EMG

Hi EMG,

Thanks. I will try it.
But I got Empty.

Ex.
Lfn2Sfn( curdir() )

OS: XP
by richard-service
Sat Nov 07, 2009 1:09 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to change LongName path to shortName path?
Replies: 9
Views: 1221

How to change LongName path to shortName path?

Hi All,

Ex. c:\progam files\aaa" --> c:\program~1\aaa
by richard-service
Fri Nov 06, 2009 8:12 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to change LongName path to shortName path?
Replies: 9
Views: 1221
Next

Return to advanced search