Rank: Newbie
  Groups: Registered
 Joined: 5/7/2020(UTC) Posts: 7  Location: St Ann Was thanked: 3 time(s) in 1 post(s)
  
	 
	
     | 
    
        
            
		      
                I'm curious as to the Advantages and/or Disadvantages with the 2 Syntaxs below.  They both do the same thing but wondering if one is better (or worse) for resource utilization.
  API.FUNCTION vs FUNCTION=
  Examples
  API.Function("SetOutput4", "Image_Name")
  Function=SetOutput4&Input=Image_Name 
            
	  
         
     | 
    | 
         
             
     | 
    
         
            
         
     | 
    | 
        
	
     | 
        
        
        
            
        
            
            
    
        
	Rank: Advanced Member
  Groups: Registered
 Joined: 12/27/2012(UTC) Posts: 5,451  Location: Belgium Thanks: 311 times Was thanked: 1008 time(s) in 830 post(s)
  
	 
	
     | 
    
        
            
		      
                Originally Posted by: LiveStreamingJamaica  I'm curious as to the Advantages and/or Disadvantages with the 2 Syntaxs below.  They both do the same thing but wondering if one is better (or worse) for resource utilization.
  API.FUNCTION vs FUNCTION=
  Examples
  API.Function("SetOutput4", "Image_Name")
  Function=SetOutput4&Input=Image_Name  No idea resource utilization but I do believe its easier to use the API.Function to replace (or combine) parts with variables used in a script  
            
	  
         
     | 
    | 
         
             
     | 
    
         
            
         
     | 
    | 
        
	
     | 
        
        
        
    
        
            
            
    
        
	Rank: Newbie
  Groups: Registered
 Joined: 5/7/2020(UTC) Posts: 7  Location: St Ann Was thanked: 3 time(s) in 1 post(s)
  
	 
	
     | 
    
        
            
		      
                It's only easier as you don't have to type all the "=" and "&" signs in the line. 
            
	  
         
     | 
    | 
         
             
     | 
    
         
            
         
     | 
    | 
        
	
     | 
        
        
        
            
        
            
            
    
        
	Rank: Advanced Member
  Groups: Registered
 Joined: 12/27/2012(UTC) Posts: 5,451  Location: Belgium Thanks: 311 times Was thanked: 1008 time(s) in 830 post(s)
  
	 
	
     | 
    
        
            
		      
                Originally Posted by: LiveStreamingJamaica  It's only easier as you don't have to type all the "=" and "&" signs in the line.  can you replace the say image_name with a variable or add a variable to a string to have a more  logical en streamlined coding within the end less line for repeated code  ??  
            
	  
         
     | 
    | 
         
             
     | 
    
         
            
         
     | 
    | 
        
	
     | 
        
        
        
    
        
            
            
    
        
	Rank: Newbie
  Groups: Registered
 Joined: 5/7/2020(UTC) Posts: 7  Location: St Ann Was thanked: 3 time(s) in 1 post(s)
  
	 
	
     | 
    
        
            
		      
                if you understand and know VB almost anything is possible.  However; you are asking questions and responding to my post and not understanding my post/question.
  I merely want to know if there is any ADVANTAGE/DISADVANTAGE in using the SYNTAX "API.FUNCTION" vs "FUNCTION="
  I'm not about to give you instructions on how to create/write Scripts from this Post. 
            
	  
         
     | 
    | 
         
             
     | 
    
         
            
         
     | 
    | 
        
	
     | 
        
        
        
            
        
            
            
    
        
	Rank: Advanced Member
  Groups: Registered
 Joined: 12/27/2012(UTC) Posts: 5,451  Location: Belgium Thanks: 311 times Was thanked: 1008 time(s) in 830 post(s)
  
	 
	
     | 
    
        
            
		      
                Arguing? I merely gave an opinion on what i found  be easier and that i had no idea  regarding your original in terms of resource utilisation to which you countered that  the easy argument is about typing  now you claim i dont understand while changing your question to ADVANTAGE/DISADVANTAGE in using the SYNTAX  if you  combine questions expect combined answers as to  resource utilization why not ask the developer , he would be  best to give you that answer  Quote:I'm not about to give you instructions on how to create/write Scripts from this Post.  no need to   
            
	  
         
     | 
    | 
         
             
     | 
    
         
            
         
     | 
    | 
        
	
     | 
        
        
        
    
        
            
            
    
        
	Rank: Newbie
  Groups: Registered
 Joined: 5/7/2020(UTC) Posts: 7  Location: St Ann Was thanked: 3 time(s) in 1 post(s)
  
	 
	
     | 
    
        
     | 
    | 
         
             
     | 
    
         
            
         
     | 
    | 
        
	
     | 
        
        
        
    
                           
	
    
        Forum Jump
         
	
    
    You cannot post new topics in this forum.
	
	You cannot reply to topics in this forum.
	
	You cannot delete your posts in this forum.
	
	You cannot edit your posts in this forum.
	
	You cannot create polls in this forum.
	
	You cannot vote in polls in this forum.
	
	
    
    
        Important Information:
        The vMix Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
        
        
More Details
        Close