am using the standard RENAME command to rename fixed asset numbers. I have set up a table that people will put the old and new fixed asset No. and once process is complete flaggs a rename boolean field in this new table. I keep getting error message Internal error 1355 in Module 19. I have bumped up cache and after dialing in using remote desk top to access DB I still get error. The version is 2.6. What can I do to make this work? HELP ](*,)
The code is below:
IF ("Old Fixed Asset No." <>'') AND ("New Fixed Asset No." <>'')
AND (Rename = FALSE) AND ("Old Fixed Asset No." <> "New Fixed Asset No.") THEN BEGIN
OLDFANO := "Old Fixed Asset No.";
"Change Fixed Assets".Rename := TRUE;
IF "User ID" = '' THEN
IF UserSetup.GET(USERID) THEN
"User ID" := USERID;
"Change Fixed Assets".Date := TODAY;
"Change Fixed Assets"."Time entered" := TIME;
"Change Fixed Assets"."Original Fixed Asset" := OLDFANO;
"Change Fixed Assets".INSERT;
IF FA.GET(OLDFANO) THEN BEGIN
FA."Old Fixed Asset No." := FA."No.";
FANo:= "New Fixed Asset No.";
FA.RENAME(FANo);
END;
OLDFANO := "Change Fixed Assets"."Old Fixed Asset No.";
END;
0
Comments
AND (Rename = FALSE) AND ("Old Fixed Asset No." <> "New Fixed Asset No.") THEN BEGIN
You are using Rename as a variable. You cannot do that because Rename is reserved syntax and when you try to use it as a variable it craps out.
Thx
SB.
RIS Plus, LLC
RIS Plus, LLC