Hi everyone,
I was getting an error while trying to change a caption in any form in ver 4.0. :
You have specified an unknown variable. ACTION. Define the variable under 'Global C/AL Symbols :-k
The relevant "action" is placed in the line.
IF FORM.RUNMODAL(0,StdTxt) = ACTION::LookupOK THEN
Text := StdTxt.Description;
EXIT(0);
I changed the codeunit 1 in which this line is placed. I copied it and save as 50001 then delete it. But now I can not rename it as codeunit 1 because of license permissions. Meanwhile after renaming codeunit 1, I can not see language options in tools menu.
Anyone has an idea of how to change the ID of the codeunit again or the ACTION error I mentioned above?
Best Regards
Ufuk
Ufuk Asci
Pargesoft
0
Comments
2) May be that there is problem with some global variable. You cannot use Action as name of your variable. Check this. Action is special C/AL keyword.
3) Be sure that you do not have field with name Action in your table which is used as Rec or in "With" statement...
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
2-3) I did not declare any variable. It is the original state. I only wanted to rename a caption but got that warning. And I did not understand the relation between changing a caption and that code line in CU1. :-k Maybe a localisation error or a bug??
Pargesoft
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Pargesoft
which version of Navision you are using? 4.00? 4.00 update 1? 4.00 ServicePack 1?
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Have you ever tried to change a caption in G/L Account form in 4.0? Have you ever got any error like that?
I am very new in development and so I think it is very hard to solve that problem without reinstalling the program. (if it works?)
Pargesoft
1) Try to do that on a new fresh cronus DB copied from install CD. Is it working or not?
2) Try to do that with Navision 4.00 wiht update 1 (I think that you can download it on MIBUSO or you can ask Microsoft)
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
I tried using new database but I did not try to update Navision.
Best Regards
Pargesoft
Especially users from Turkey have to pay attention to the error mentioned above. Changing ACTION TO ACTİON and CODEUNIT to CODEUNİT in CU1 solves the problem.
Ufuk
Pargesoft