HARUPDF numerar páginas no final
Moderador: Moderadores
-
Softwhouse
- Usuário Nível 3

- Mensagens: 346
- Registrado em: 07 Dez 2011 18:44
- Localização: Porto Alegre/RS
HARUPDF numerar páginas no final
Li em outro tópico sobre numerar páginas usando HARUDF no final. Tentei adaptar para minigui e não reconheceu _EnumIndex e _EnumLast. Tem que acrescentar algo ?
Fernando
- JoséQuintas
- Administrador

- Mensagens: 20415
- Registrado em: 26 Fev 2007 11:59
- Localização: São Paulo-SP
- Curtiram: 1 vez
HARUPDF numerar páginas no final
Levei um tempinho pra entender a frase.... rs
Tem que ser Harbour
E isso é aplicado à variável do loop, como propriedade, ou se ficar mais fácil pra entender, como sub-variável.
Tem que ser Harbour
E isso é aplicado à variável do loop, como propriedade, ou se ficar mais fácil pra entender, como sub-variável.
Código: Selecionar todos
FOR EACH oPage IN aPageList
? oPage:__EnumIndex, oPage:__EnumLast
NEXT
José M. C. Quintas
Harbour 3.2, mingw, multithread, gtwvg, fivewin 25.12, dbfcdx, MySQL, ADOClass, PDFClass, SefazClass, (hwgui), (hmg3), (hmg extended), (oohg), PNotepad, ASP, (Linux/Flagship/harbour 3.2)
"The world is full of kings and queens, who blind our eyes and steal our dreams Its Heaven and Hell"
https://github.com/JoseQuintas/
Harbour 3.2, mingw, multithread, gtwvg, fivewin 25.12, dbfcdx, MySQL, ADOClass, PDFClass, SefazClass, (hwgui), (hmg3), (hmg extended), (oohg), PNotepad, ASP, (Linux/Flagship/harbour 3.2)
"The world is full of kings and queens, who blind our eyes and steal our dreams Its Heaven and Hell"
https://github.com/JoseQuintas/
- JoséQuintas
- Administrador

- Mensagens: 20415
- Registrado em: 26 Fev 2007 11:59
- Localização: São Paulo-SP
- Curtiram: 1 vez
HARUPDF numerar páginas no final
Acho que o XHarbour tem de outra forma.
Agora resta saber se a sua Minigui é com Harbour ou XHarbour.
Agora resta saber se a sua Minigui é com Harbour ou XHarbour.
José M. C. Quintas
Harbour 3.2, mingw, multithread, gtwvg, fivewin 25.12, dbfcdx, MySQL, ADOClass, PDFClass, SefazClass, (hwgui), (hmg3), (hmg extended), (oohg), PNotepad, ASP, (Linux/Flagship/harbour 3.2)
"The world is full of kings and queens, who blind our eyes and steal our dreams Its Heaven and Hell"
https://github.com/JoseQuintas/
Harbour 3.2, mingw, multithread, gtwvg, fivewin 25.12, dbfcdx, MySQL, ADOClass, PDFClass, SefazClass, (hwgui), (hmg3), (hmg extended), (oohg), PNotepad, ASP, (Linux/Flagship/harbour 3.2)
"The world is full of kings and queens, who blind our eyes and steal our dreams Its Heaven and Hell"
https://github.com/JoseQuintas/
-
alxsts
- Colaborador

- Mensagens: 3107
- Registrado em: 12 Ago 2008 15:50
- Localização: São Paulo-SP-Brasil
HARUPDF numerar páginas no final
Olá!
No xHarbour, tem na forma de função: Hb_EnumIndex().
Exemplo extraído do xHarbour Language Reference Guide:
EnumIndex
No xHarbour, tem na forma de função: Hb_EnumIndex().
Exemplo extraído do xHarbour Language Reference Guide:
Código: Selecionar todos
// The example compares a regular FOR..NEXT loop with a
// FOR EACH loop. FOR..NEXT uses a loop counter while FOR EACH
// does not. Instead, the "loop counter" is retrieved with
// function HB_EnumIndex().
PROCEDURE Main
LOCAL aArray1 := { "A", "B", "C" }
LOCAL aArray2 := { "a", "b", "c" }
LOCAL i, cValue
CLS
? "FOR loop"
FOR i:=1 TO Len( aArray1 )
? i, aArray1[i]
IF i == 3
AAdd( aArray1, "D" )
ENDIF
NEXT
?
? "FOR EACH loop"
FOR EACH cValue IN aArray2
? HB_EnumIndex(), cValue
IF HB_EnumIndex() == 3
AAdd( aArray2, "d" )
ENDIF
NEXT
RETURN
[]´s
Alexandre Santos (AlxSts)
Alexandre Santos (AlxSts)
- JoséQuintas
- Administrador

- Mensagens: 20415
- Registrado em: 26 Fev 2007 11:59
- Localização: São Paulo-SP
- Curtiram: 1 vez
HARUPDF numerar páginas no final
alxsts escreveu:No xHarbour, tem na forma de função: Hb_EnumIndex().
Se for assim é ruim, hein?
Então isto seria impossível no Xharbour...
Código: Selecionar todos
FOR EACH SalaDeAula IN Escola
FOR EACH Aluno IN SalaDeAula
? "aluno ", Aluno:__EnumIndex, "sala", SalaDeAula:__EnumIndex
NEXT
NEXT
José M. C. Quintas
Harbour 3.2, mingw, multithread, gtwvg, fivewin 25.12, dbfcdx, MySQL, ADOClass, PDFClass, SefazClass, (hwgui), (hmg3), (hmg extended), (oohg), PNotepad, ASP, (Linux/Flagship/harbour 3.2)
"The world is full of kings and queens, who blind our eyes and steal our dreams Its Heaven and Hell"
https://github.com/JoseQuintas/
Harbour 3.2, mingw, multithread, gtwvg, fivewin 25.12, dbfcdx, MySQL, ADOClass, PDFClass, SefazClass, (hwgui), (hmg3), (hmg extended), (oohg), PNotepad, ASP, (Linux/Flagship/harbour 3.2)
"The world is full of kings and queens, who blind our eyes and steal our dreams Its Heaven and Hell"
https://github.com/JoseQuintas/
-
Softwhouse
- Usuário Nível 3

- Mensagens: 346
- Registrado em: 07 Dez 2011 18:44
- Localização: Porto Alegre/RS
HARUPDF numerar páginas no final
Olá José, a Minigui que uso é com o Harbour, uso sempre a última versão.
Fernando
- JoséQuintas
- Administrador

- Mensagens: 20415
- Registrado em: 26 Fev 2007 11:59
- Localização: São Paulo-SP
- Curtiram: 1 vez
HARUPDF numerar páginas no final
Ok.
Então repare que são dois traços e não apenas um, como colocou no início... e sempre com a variável do loop em questão.
Então repare que são dois traços e não apenas um, como colocou no início... e sempre com a variável do loop em questão.
José M. C. Quintas
Harbour 3.2, mingw, multithread, gtwvg, fivewin 25.12, dbfcdx, MySQL, ADOClass, PDFClass, SefazClass, (hwgui), (hmg3), (hmg extended), (oohg), PNotepad, ASP, (Linux/Flagship/harbour 3.2)
"The world is full of kings and queens, who blind our eyes and steal our dreams Its Heaven and Hell"
https://github.com/JoseQuintas/
Harbour 3.2, mingw, multithread, gtwvg, fivewin 25.12, dbfcdx, MySQL, ADOClass, PDFClass, SefazClass, (hwgui), (hmg3), (hmg extended), (oohg), PNotepad, ASP, (Linux/Flagship/harbour 3.2)
"The world is full of kings and queens, who blind our eyes and steal our dreams Its Heaven and Hell"
https://github.com/JoseQuintas/
-
alxsts
- Colaborador

- Mensagens: 3107
- Registrado em: 12 Ago 2008 15:50
- Localização: São Paulo-SP-Brasil
HARUPDF numerar páginas no final
Olá!
JoséQuintas escreveu:Então isto seria impossível no Xharbour...
Código: Selecionar todos
LOCAL nEnum
FOR EACH SalaDeAula IN Escola
nEnum := hb_EnumIndex()
FOR EACH Aluno IN SalaDeAula
? "aluno ", hb_EnumIndex(), "sala", nEnum
NEXT
NEXT
[]´s
Alexandre Santos (AlxSts)
Alexandre Santos (AlxSts)