Notifications
Announcements
No record found.
hi
I have G/L Entry DataItem . I want if Document No is Like 'GR/MBR/OT*' then amount should be added in a variable else not.
Thanks
*This post is locked for comments
Please always provide what did you try and what problem are you facing.
Forum is not to write code for you.
Hi
I am reading Data from G/L Entry table. I want Document No should be like 'GR/MBR/OT*' . * can be any character or characters.
your requirement is clear. I am asking about code that you tried.
I am trying like this with Setfilter and it is working. How we can do if i have to use If conditon
SETFilter("Document No.", 'GR/MBR/OT*');
did you check this function
msdn.microsoft.com/.../dd355417(v=nav.90).aspx
With Setfilter i have done like this and it is working . If i want to do same thing with if condition how it can be done
you have to use STRPOS
or you can use same SETFILTER with FINDSET
IF FINDSET THEN
REPEAT
//Your logic here
UNITL Next = 0;
U mean to say like this . I want to use with If condition.
pos := STRPOS("Document No.",'GR/MBR/');
What it will return
if pos <> 0 then begin
//your logic here
end;
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.