Code Datatype problem...

rajpatelbcarajpatelbca Member Posts: 178
Hi Experts,

I have some strange problem. one of our client using space in customer code. eg. (REL TECH,WEB SOL). but actual problem occure when i used code like this one the codeunits :
CustRec.setrange(CustRec."No.",Mytable."Cust. Order No.");
if CustRec.Findfirst then
begin
.....
end;

as a result it cant found the records.

Thanks in advance..

Rajesh Patel
Experience Makes Man Perfect....
Rajesh Patel

Comments

  • kapamaroukapamarou Member Posts: 1,152
    Hi Experts,

    I have some strange problem. one of our client using space in customer code. eg. (REL TECH,WEB SOL). but actual problem occure when i used code like this one the codeunits :
    CustRec.setrange(CustRec."No.",Mytable."Cust. Order No.");
    if CustRec.Findfirst then
    begin
    .....
    end;

    as a result it cant found the records.

    Thanks in advance..

    Rajesh Patel
    CustRec.setrange(CustRec."No.",Mytable."Cust. Order No.");

    Do you mean Mytable."Cust. Order No." or some other field of MyTable?
  • rajpatelbcarajpatelbca Member Posts: 178
    #-o ooh its same field having customer no.

    CustRec.setrange(CustRec."No.",Mytable."Cust. No.");
    Experience Makes Man Perfect....
    Rajesh Patel
  • SavatageSavatage Member Posts: 7,142
    yeah i can see where eg. (REL TECH,WEB SOL) would be really weird order numbers.
    :mrgreen:
    Experience Makes Man Perfect....
    I don't think anyone can be perfect, better but not perfect :D
  • rajpatelbcarajpatelbca Member Posts: 178
    Thanks for your quick reponse..

    my client is using space in Customer No. eg.FRAG DIR
    i have one table called mytable in which that Customer No. is available that table actually contain a customer order information. "Customer No." Field of this table having customer No. in mytable. when, i have written some code like this.

    CustRec.Setrange(CustRec."No.",mytable."Customer No.")
    if CustRec.findfirst then
    ....


    but its can't find such kind of customer. ](*,)

    Thanks
    Experience Makes Man Perfect....
    Rajesh Patel
  • idiotidiot Member Posts: 651
    Can you find anything with
    CustRec.Setrange(CustRec."No.",'FRAG DIR')?
    NAV - Norton Anti Virus

    ERP Consultant (not just Navision) & Navision challenger
  • DenSterDenSter Member Posts: 8,305
    Savatage wrote:
    I don't think anyone can be perfect, better but not perfect :D
    I saw someone yesterday at the airport luggage claim with a sticker on his suitcase that said "I am not perfect, but parts of me are incredible" :mrgreen:
Sign In or Register to comment.