Converting old Dos Clipper Application

Post Reply
User avatar
Silvio.Falconi
Posts: 7168
Joined: Thu Oct 18, 2012 7:17 pm
Been thanked: 2 times

Converting old Dos Clipper Application

Post by Silvio.Falconi »

Dear Friends,
On a old Clipper Application made perhaps on DIC-89 I have this commands

Code: Select all | Expand


mcodute = "001"
   do cnfusr
   @ 24, 0
   @ 24, 0 say " Controllo validità archivi in corso ..."
   do utile11
   store "  " to vpub_mascl,vpub_masfr
   select 1
   archi = "TABGEN"
   if net_use("&dr1.&archi",.f.,5)
      set index to &DR2.TABGEN
      seek "COGE1"
      vpub_mascl = substr(codice,1,2)
      vpub_masfr = substr(codice,3,2)
   endif
 



cnfusr

Code: Select all | Expand


  procedure cnfusr

   select aziende
   locate all for CODICE=MCODUTE
   drditta = ragsoc
   store trim(mcodute) + "\" to dr1,dr2,dr3
   if lpag != 0
      lp = lpag
   endif
   do case
   case csta = 10
      lr = 18
   case csta = 12
      lr = 77
   case csta = 17
      lr = 15
   endcase
   return


and


How I can make to use the same code on Tdatabase ?

i.e. "&dr1.&archi" and set index to &DR2.TABGEN

these are macro and I never used macro on fwh
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Antonio Linares
Site Admin
Posts: 42599
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 41 times
Been thanked: 88 times
Contact:

Re: Converting old Dos Clipper Application

Post by Antonio Linares »

Dear Silvio,

Do you plan to rewrite the app ? why ? :-)

If it compiles fine and works fine, you may leave it as it is
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Silvio.Falconi
Posts: 7168
Joined: Thu Oct 18, 2012 7:17 pm
Been thanked: 2 times

Re: Converting old Dos Clipper Application

Post by Silvio.Falconi »

it's on dos 16bit
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Antonio Linares
Site Admin
Posts: 42599
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 41 times
Been thanked: 88 times
Contact:

Re: Converting old Dos Clipper Application

Post by Antonio Linares »

Dear Silvio,

It should compile and run fine using Harbour too
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Silvio.Falconi
Posts: 7168
Joined: Thu Oct 18, 2012 7:17 pm
Been thanked: 2 times

Re: Converting old Dos Clipper Application

Post by Silvio.Falconi »

Antonio Linares wrote:Dear Silvio,

It should compile and run fine using Harbour too


I wish converte to Win
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Jimmy
Posts: 1740
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany
Has thanked: 2 times

Re: Converting old Dos Clipper Application

Post by Jimmy »

hi Silvio,

for Windows GUI you need to "replace" all @ SAY / GET with Windows Control
also all "Waitstate" must be change to Event Style
not all, like ACHOISE, have a equivalent as Windows Control
3-PP LIB must exist under Windows for "your" Compiler/Linker

so you can use only that Part of DOS Code which make NO IN/OUT Put to Screen

! Note : DOS DBF might be OEM while Windows want ANSI/UniCode than you need right CodePage
greeting,
Jimmy
User avatar
Silvio.Falconi
Posts: 7168
Joined: Thu Oct 18, 2012 7:17 pm
Been thanked: 2 times

Re: Converting old Dos Clipper Application

Post by Silvio.Falconi »

I know it.
there are many commands i cannot convert as
wait to (ns)
my sources are written on S87,
I found an old source of 1989
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Jimmy
Posts: 1740
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany
Has thanked: 2 times

Re: Converting old Dos Clipper Application

Post by Jimmy »

hi Silvio,
Silvio.Falconi wrote:wait to (ns)

Code: Select all | Expand

#command WAIT [<c>] [TO <var>] => [<var> := ] DC_Wait( <c> )

in Xbase++ there is a 3-PP LIB which can use Cl*pper Syntax in GUI Mode
all xBase Command are "translate" to DC_* Function

have a look at Attachment ...
grrrr ... forgot in this Forum Attachment are not allowed
write my a private Email so i can send you Dcstd.ch
greeting,
Jimmy
User avatar
Antonio Linares
Site Admin
Posts: 42599
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 41 times
Been thanked: 88 times
Contact:

Re: Converting old Dos Clipper Application

Post by Antonio Linares »

Jimmy,

Could you post Dcstd.ch code here ?

Thanks!

Enviado desde mi SM-M325FV mediante Tapatalk
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Silvio.Falconi
Posts: 7168
Joined: Thu Oct 18, 2012 7:17 pm
Been thanked: 2 times

Re: Converting old Dos Clipper Application

Post by Silvio.Falconi »

this evening i found (on my backup, cd and diskette )
a oldest application made on dos with dbsee but I not remember what is this dbsee.


Really when we were doing the programs in dos and s87 we used other commands different from fwh and I really can't understand now after about thirty years what I had done, they were software for the condominium, for a shoe shop, for a warehouse and many more others and I would have liked to revive them maybe in Windows system maybe in fwh but as I have already written there are instructions and commands that seem to be very difficult for me because I have not used clipper for a very long time ...
clipper. .blinker fi ...
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
James Bott
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA
Contact:

Re: Converting old Dos Clipper Application

Post by James Bott »

Silvio

a oldest application made on dos with dbsee but I not remember what is this dbsee.


Maybe dbsee is a typo and it should be dbseek( x )?
FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
User avatar
Silvio.Falconi
Posts: 7168
Joined: Thu Oct 18, 2012 7:17 pm
Been thanked: 2 times

Re: Converting old Dos Clipper Application

Post by Silvio.Falconi »

James Bott wrote:Silvio

a oldest application made on dos with dbsee but I not remember what is this dbsee.


Maybe dbsee is a typo and it should be dbseek( x )?


No, I have used dBsee 3, an excellent Italian CASE tool for Clipper Summer 87 ( years 90- 94) created by Isa software , Then Albalog bought back the brand making a release Visual for Alaska

Image
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Post Reply