cData:='&s='+AllTrim(Str(Year(self:oSFacturas:fecha)))+'&nf='+AllTrim(Str(self:oSFacturas:factura))+'&I='+AllTrim(cTotalCRC)+'&cr='+AllTrim(cCrcTBAIURL)
I have this variable with tihis string.
I need every charachters including the "&" char, but it disappears
The example I need is &s=2023&nf=23025&l=ae45eas546&cr=45
But it returns : s=2023nf=23025l=ae45eas546cr=45
Best Regards
There must be a setting in your environment that is affecting the
result. May be code page, collation or VO/Windows settings
Provide a small terminal test that replicates the issue.
The following code correctly returns the & symbol:
FUNCTION Start()
LOCAL cData as string
cData:= '&s='+'2023'+'&nf='+'5'+'&I=546'+'&cr=45'
? cData // returns &s=2023&nf=5&I=546&cr=45
wait
return nil
On 5/20/2023 6:04 AM, fernando moreno wrote:
cData:='&s='+AllTrim(Str(Year(self:oSFacturas:fecha)))+'&nf='+AllTrim(Str(self:oSFacturas:factura))+'&I='+AllTrim(cTotalCRC)+'&cr='+AllTrim(cCrcTBAIURL)
I have this variable with tihis string.
I need every charachters including the "&" char, but it disappears
The example I need is &s=2023&nf=23025&l=ae45eas546&cr=45
But it returns : s=2023nf=23025l=ae45eas546cr=45
Best Regards
El domingo, 21 de mayo de 2023 a las 3:41:47 UTC+2, Jamal escribió:
There must be a setting in your environment that is affecting the
result. May be code page, collation or VO/Windows settings
Provide a small terminal test that replicates the issue.
The following code correctly returns the & symbol:
FUNCTION Start()
LOCAL cData as string
cData:= '&s='+'2023'+'&nf='+'5'+'&I=546'+'&cr=45'
? cData // returns &s=2023&nf=5&I=546&cr=45
wait
return nil
On 5/20/2023 6:04 AM, fernando moreno wrote:
cData:='&s='+AllTrim(Str(Year(self:oSFacturas:fecha)))+'&nf='+AllTrim(Str(self:oSFacturas:factura))+'&I='+AllTrim(cTotalCRC)+'&cr='+AllTrim(cCrcTBAIURL)
I have this variable with tihis string.
I need every charachters including the "&" char, but it disappears
The example I need is &s=2023&nf=23025&l=ae45eas546&cr=45
But it returns : s=2023nf=23025l=ae45eas546cr=45
Best Regards
Thaks Jamal
I have tried to do it but and it works.
But when I put the code in a data windows it gives me the same bad result
I think the character & is used for macros and that's why it removes it but I think there has to be some way for it to display it as a character
cData:='&s='+AllTrim(Str(Year(self:oSFacturas:fecha)))+
'&nf='+AllTrim(Str(self:oSFacturas:factura))+'&I='+
AllTrim(cTotalCRC)+'&cr='+AllTrim(cCrcTBAIURL)
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 299 |
Nodes: | 16 (2 / 14) |
Uptime: | 50:16:29 |
Calls: | 6,689 |
Calls today: | 7 |
Files: | 12,225 |
Messages: | 5,344,594 |
Posted today: | 1 |