Search found 16 matches

by mercurial
Sun Feb 15, 2015 7:57 pm
Forum: FiveWin for Harbour/xHarbour
Topic: converting to fwh
Replies: 1
Views: 478

Re: converting to fwh

Instead of printing, create a string variable. Then use a listbox widget and add a new line with the string text. Of course, assign the listbox Courier New font, so that all text is aligned.

Or, if you consider all the code, you can create a table and assign cell text....
by mercurial
Sat Feb 07, 2015 3:54 pm
Forum: All products support
Topic: messaggio per mercurial
Replies: 18
Views: 6725

Re: messaggio per mercurial

Ho provato a ricreare la struttura delle funzioni partendo dalla tua descrizione... ciclone() chiama ciclomater() o ciclomater() è eseguita dopo? assegnaOre() è chiamata da dentro ciclomater due volte (citi il for/next)... il pezzo di codice che hai postato è dentro assegnaOre? ma è troppo ridotto e ...
by mercurial
Sat Feb 07, 2015 2:51 pm
Forum: All products support
Topic: messaggio per mercurial
Replies: 18
Views: 6725

Re: messaggio per mercurial

Ho letto velocemente i tuoi due post e devo rileggerli per cercare di entrare meglio nei meccanismi...


Ma prima ti devo chiedere di inquadrare meglio il lavoro che stai facendo e ciò che hai a disposizione, perché leggo delle frasi che possono sembrare contraddirsi mentre magari è solo un modo di ...
by mercurial
Fri Feb 06, 2015 1:15 pm
Forum: All products support
Topic: messaggio per mercurial
Replies: 18
Views: 6725

Re: messaggio per mercurial


nOreClasse secondo me non è data da quella operazione che avevo messo ma è dato dal calcolo della materia e quindi nOremateria cioè



Quindi non devi solo ricompilare il codice (per caso, l'hai fatto? Hai ricompilato il decompilato senza cambiare nulla? ) ma devi pure scrivere del codice... se ...
by mercurial
Fri Feb 06, 2015 1:06 pm
Forum: All products support
Topic: messaggio per mercurial
Replies: 18
Views: 6725

Re: messaggio per mercurial

La funzione assegnaore poi è ingarbugliata...ma solo non capisco il perchè lui assegna le ore solo per lunedi,martedi,mercoledi e giovedi
probabilmente non ci sono i controlli per classelib e aulalib e giornolib del docente


Sembrerebbe quello il problema... infatti le classi hanno più docenti ...
by mercurial
Fri Feb 06, 2015 12:49 pm
Forum: All products support
Topic: messaggio per mercurial
Replies: 18
Views: 6725

Re: messaggio per mercurial

>Una curiosità: questo programma era stato sviluppato con un CASE?
si sweet..qualchecosa non mi ricordo il nome nel 92

Per caso era dbSee?

Comunque si spiegano alcune cose, così come quella follia dell'indice orario.$$1 che un qualunque essere umano avrebbe gestito con una serie di SET RELATION ...
by mercurial
Fri Feb 06, 2015 12:14 pm
Forum: All products support
Topic: messaggio per mercurial
Replies: 18
Views: 6725

Re: messaggio per mercurial

si... quando inserisco un docente gli inserisco anche le cattedre per quel docente.

Adesso ho un 'altro problema in un altro pezzo della procedura dove assegna le ore .. non capisco il perchè non entra in questo ciclo

while (OR->prof == DO->(RecNo()))

Perché OR->prof ...
by mercurial
Fri Feb 06, 2015 12:07 pm
Forum: All products support
Topic: messaggio per mercurial
Replies: 18
Views: 6725

Re: messaggio per mercurial

Faccio riferimento al pezzettino di codice che hai inviato l'altro giorno:
SELECT CLCL->(dbSeek(OR->classe))nOreClasse := CL->MAX_ORE-CL->ORE_ASS....IF CLASSELIB( nOreClasse, nGiorno, nOre ) cl->ore_ass += 1 or->gg_ora := nGG_OraENDIF

nOreClasse cosa rappresenta?
Hai ...
by mercurial
Fri Feb 06, 2015 11:21 am
Forum: All products support
Topic: messaggio per mercurial
Replies: 18
Views: 6725

Re: messaggio per mercurial

Quindi in pratica in orario.dbf in una prima fase "sviluppi" la cattedra di un docente per poi in un secondo momento andare ad indicare giorno e ora.

Il controllo deve essere doppio perché alcuni docenti potrebbero dover usare un laboratorio... ma questo dovrebbe essere settabile quando sviluppi la ...
by mercurial
Fri Feb 06, 2015 8:07 am
Forum: FiveWin for Harbour/xHarbour
Topic: help for a search function
Replies: 6
Views: 1757

Re: help for a search function

sorry, the old clipper function is this
static function CLASSELIB(nOre, ngiorno, nOra)...

why I must change it ?

Sorry Silvio, I don't understand what you want to say.

ClasseLibera and CLASSELIB are DIFFERENT and they do DIFFERENT things, and produce DIFFERENT results.

For example ...
by mercurial
Thu Feb 05, 2015 3:22 pm
Forum: FiveWin for Harbour/xHarbour
Topic: For Mr. Nages
Replies: 8
Views: 2140

Re: For Mr. Nages

We can discuss that later if and when you need.

As Nages said, it all depends on what is inside the DBF. Imagine a 100.000 records dbf, with only 2 records deleted. There should be absolutely no difference between the various methods described in terms of refresh time. If you start to have 10% of ...
by mercurial
Thu Feb 05, 2015 1:02 pm
Forum: FiveWin for Harbour/xHarbour
Topic: help for a search function
Replies: 6
Views: 1757

Re: help for a search function

You can use LOCATE FOR with any DBF... if there is an active index, the search is done using the sequence of the index, otherwise SET ORDER TO 0 and you will get the records in their natural order (recno())

Before writing the function, please specify better what you need to do because it is not ...
by mercurial
Thu Feb 05, 2015 11:44 am
Forum: FiveWin for Harbour/xHarbour
Topic: help for a search function
Replies: 6
Views: 1757

Re: help for a search function

I added comments in the code


...function ClasseLibera(GiornoOra) Local lRet local cClasse:= alltrim(or->classe) Local nRecord:= or->(RecNo()) SELECT OR// You create a new index every time the function is called !!!! INDEX ON UPPER(or->classe) tag CLASSE TO ...
by mercurial
Wed Feb 04, 2015 8:14 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Problem of a function
Replies: 3
Views: 1012

Re: Problem of a function

Hi Silvio,
I think there is something I don't understand.

In another post you sent 2 GIORNOLIB functions, similar but working on different databases.

I think that the function is wrong...
STATIC FUNCTION GIORNOLIB( ngiorno, nOre, nOra ) IF ( Val( anagrafe->giornoli &#41 ...
by mercurial
Wed Feb 04, 2015 6:07 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Converting an old Clipper app
Replies: 3
Views: 801

Re: Converting an old Clipper app

These calls create indexes and use a "trick" to show a progress bar, that is calculated and shown for each record, together with cursor positioning. I don't know which Clipper version you were using with that code but [x]Harbour can call a callback function every x indexed records. In this way you ...