Normal Topic @IsNew called on a SubForm from MainForm (Read 600 times)
actiontech
Full Member
***
Offline



Posts: 173
Joined: Apr 10th, 2016
@IsNew called on a SubForm from MainForm
Mar 27th, 2018 at 7:23pm
Print Post Print Post  
Hello, is it possible to call @IsNew on records in a SubForm from programming events within the MainForm. A nonworking example of what I'm trying to do would be:

Code
Select All
var vNew as Int

If @IsNew("Pictures") = 0
{
           vNew = @FormNewRecord("Pictures")
}
 

  
Back to top
 
IP Logged
 
Ray the Reaper
Global Moderator
Members
Lantica Support
*****
Offline


The One & The Only

Posts: 2480
Joined: Aug 20th, 2003
Re: @IsNew called on a SubForm from MainForm
Reply #1 - Mar 28th, 2018 at 1:10pm
Print Post Print Post  
No. @IsNew does not accept any arguments. If you are looking for a way to check and see if a subrecord has already been filled in or not, You will want to check element values on the subform using @FormFieldValue()

-Ray
  

Raymond Yoxall Consulting
ray.yoxall@gmail.com
ryoxall@lantica.com
Sesame Applications, Design and Support
Back to top
IP Logged