• characters disappears

    From fernando moreno@21:1/5 to All on Sat May 20 03:04:42 2023
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Jamal@21:1/5 to fernando moreno on Sat May 20 21:40:22 2023
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From fernando moreno@21:1/5 to All on Sun May 21 02:56:26 2023
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Jamal@21:1/5 to fernando moreno on Mon May 22 05:35:09 2023
    Can you zip an AEF program on Google Drive or other platform and I will
    take a look.

    Make sure the AEF is small and does not contain any external references
    unless they are needed and included in the zip file.

    Jamal

    On 5/21/2023 5:56 AM, fernando moreno wrote:
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From dlzc@21:1/5 to fernando moreno on Mon May 22 06:50:34 2023
    On Saturday, May 20, 2023 at 3:04:44 AM UTC-7, fernando moreno wrote:
    cData:='&s='+AllTrim(Str(Year(self:oSFacturas:fecha)))+
    '&nf='+AllTrim(Str(self:oSFacturas:factura))+'&I='+
    AllTrim(cTotalCRC)+'&cr='+AllTrim(cCrcTBAIURL)

    The & is a macro operator. Try either double quotes instead of single to delineate bodies of text, or use chr(38) instead, each place.

    David A. Smith

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)