Página 1 de 1
como pegar conteudo de variaveis em HTML
Enviado: 29 Jan 2016 19:39
por porter
ola pessoal, como faço para trazer o nome de fantasia e a razao social guardadas nas variaveis NOMFANTASIA e RAZSOCIAL na rotina abaixo ?
Código: Selecionar todos
? "<html>"
? '<font size="3" face="Fixed">'
? "<center><b>#NOMFANTASIA#</b></center>"
? "<center><b>#RAZSOCIAL#</b></center>"
como pegar conteudo de variaveis em HTML
Enviado: 13 Fev 2016 15:26
por asimoes
Porter isso tá em um arquivo?
como pegar conteudo de variaveis em HTML
Enviado: 04 Mar 2016 18:28
por rochinha
Amiguinhos,
O que o
porter precisará é fazer um replace do que esta com #blablabla# com alguma string desejada.
Código: Selecionar todos
? "<html>"
? '<font size="3" face="Fixed">'
? "<center><b>#NOMFANTASIA#</b></center>"
? "<center><b>#RAZSOCIAL#</b></center>"
Assim:
Código: Selecionar todos
..
cVariavelComNomeFantasia := "Rochinha"
cVariavelComRazaoSocial := "Jose Carlos da Rocha ME LTDA EPP e CIA"
...
cTexto := "<html>" + ;
'<font size="3" face="Fixed">' + ;
"<center><b>#NOMFANTASIA#</b></center>" + ;
"<center><b>#RAZSOCIAL#</b></center>"
...
cTexto := strTran( cTexto, "#NOMFANTASIA#", cVariavelComNomeFantasia )
cTexto := strTran( cTexto, "#RAZSOCIAL#", cVariavelComRazaoSocial )
...