Tag Archive for call

Call IBAction Programatically

[self IBActionName:nil]


Detect Ajax

/* AJAX check  */
if(!empty($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest') {
	/* special ajax here */


Define and call a function in interactive mode

#Define a function
>>> def hola():
        print "hola mundo"

#Call the function
>>> hola()
hola mundo


Finding the number of observations in the Dataset

First up is the most basic and least efficient method: read the whole data set and increment a counter a pick up its last value. The END option allows you to find the last value of count without recourse to FIRST.x/LAST.x logic.

data _null_;
set test end=eof;
if eof then call symput("nobs",count);

read more about 5 more diff ways to find number of observation in a dataset....
: <a href="http://studysas.blogspot.com/2008/08/finding-number-of-observations-in-sas.html

" >http://studysas.blogspot.com/2008/08/finding-number-of-observations-in-sas.html

Call Sumput vs Call SymputX

The second argument is the character value that will be assigned to the macro variable. The second argument need to be always a character value or if a numeric value is to be used it should convert first into character variable before assigning it to macro variable. It may lead to problems, if you don�t do the conversion from numeric to character. In this case, SAS automatically converts numeric value of the variable to character value before assigning it to macro variable and prints a message in the LOG saying that conversion happened.
read more at: <a href="http://studysas.blogspot.com/2009/08/call-symput-vs-call-symputx.html

" >http://studysas.blogspot.com/2009/08/call-symput-vs-call-symputx.html

Renaming All variables in the SAS dataset using SASHELP VIEWS/DICTIONARY.tables

read more at: <a href="http://studysas.blogspot.com/2009/07/renaming-all-variables-in-sas-data-set.html

" >http://studysas.blogspot.com/2009/07/renaming-all-variables-in-sas-data-set.html

Count # of nodes



Check the Length of all character variables length is LT 200


According to FDA released the Guidance for Industry: Providing Regulatory
Submission in Electronic Format � NDAs which was released in Jan 1999, one of the important point to comply with the agency�s regulations is :

The length of any character values cannot be more than 200 characters.

Following is the macro which will give us the list of character variables whose actual length (not the assigned) is greater than 200.

We can use this program to check the maximum length of all variables of any dataset at once. This macro will create a table with list of variables and their length.



AS3 Calling a parent function from a child movieclip

// adjust "this.parent.parent" as needed

if(this.parent.parent != null){
var parentObj:Object = this.parent.parent as Object;

// in your parent SWF you will want, of course, a function like this:
// function traceMe():void
// {
//      trace("success");
// }


Retrieve the path name and filename of executing program … programmatically