Hi all;
I have a form and it contains only a textbox and a command button. I ask user to enter a date into the textbx then press the button.
After that I want to filter G/L Entry table by this date with the following line;
SETRANGE("Posting Date", CurrForm.txtPostingDate);
I wrote it down into command OnPush trigger of the button.
When I try to compile I get the following error :
Type conversion is not possible because 1 of the operators contains an invalid type
Date:=Control
I see the meaning of the error. But how can I compare or match a table field with the value of a form control?
Thanks so much.
0
Answers
glEntry.SETRANGE("Posting Date",MyGlobalTextVariable);
You can use a data type 'Date' but that won't allow you to enter a datefilter. I would probably use a text type variable if I needed to be able to enter filters instead of single date values.
RIS Plus, LLC
Thank you kapamarou and Den for the detailed replies.
Rather use the Date type variable instead text variable... ;-)
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
RIS Plus, LLC
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
RIS Plus, LLC
Microsoft Business Solutions-Navision
Type conversion is not possible because 1 of the operators contains an invalid type.
Text := VOID
OK
In that there is a coding line which is given below
Addr[1][1] := PrintBarCode.ParseRequest(ICR."Cross-Reference No.");
when I try to compile it throws the error and the cursor blink at this code only.
ADDR[1][1]is defined as text[250].
Printbarcode ====> NAv Comm (Codeuint)
there the cross reference no. is passed and get converted into barcode number....
can any body tell what is need to be done.....
The Addr[1][1] looks suspicious.
How is it declared? Have you tried Addr[1,1]?