#xcommand TEXT INTO <v> => #pragma __cstream|<v>:=%s
#xcommand TEXT INTO <v> ADDITIVE => #pragma __cstream|<v>+=%s
TEXT INTO cTexto
CREATE TABLE IF NOT EXISTS `validalta` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`fechanaci` date,
`nif` varchar(9) DEFAULT NULL,
`mail` varchar(50) DEFAULT NULL,
`cuenta` varchar(4) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `NIF` (`nif`)
);
ENDTEXT
oServer:Command( cTexto )
TEXT INTO cTransac
<tns:importAbsenceFiles xmlns:tns="http://echange.service.open.server.com">
<tns:absenceFilesToImport>
<tns:absenceFile>
<tns:absenceTypeAbbreviation>VACAC</tns:absenceTypeAbbreviation>
<tns:employeeIdentificationNumber>$1</tns:employeeIdentificationNumber>
<tns:startDate>$2</tns:startDate>
<tns:endDate>$3</tns:endDate>
</tns:absenceFile>
</tns:absenceFilesToImport>
</tns:importAbsenceFiles>
ENDTEXT
cTransac:= Expand( cTransac, oQuery:dni, oQuery:FechaInicio, oQuery:FechaFin )
#ifndef __XHARBOUR__
#xcommand TEXT INTO <v> => #pragma __cstream|<v>:=%s
#xcommand TEXT INTO <v> ADDITIVE => #pragma __cstream|<v>+=%s
#endif
Syntax
TEXT [TO PRINTER] [TO FILE <fileName>]
<text>
ENDTEXT
or
TEXT INTO <varName>
<text>
ENDTEXT
Arguments
TO PRINTER
The text is additionally output to the printer.
TO FILE <fileName>
The text is additionally output to the file <fileName>. It can be specified as a literal file name or as a character expression enclosed in parentheses. The default extension is TXT.
INTO <varName>
This is the symbolic name of the variable to assign <text> to.
<text>
This is a literal text block enclosed in TEXT and ENDTEXT. The text is output to the screen and displayed exactly as written in the PRG source code file. Description
The TEXT...ENDTEXT command outputs a block of literal text to the console. Output can be directed additionally to a printer or a file. When SET CONSOLE is set to OFF, the screen output is suppressed.
ALternatively, the text is assigned as character string to the variable <varName> when the INTO option is used.
Return to FiveWin para Harbour/xHarbour
Users browsing this forum: No registered users and 50 guests