Interview Questions: 1. Difference between following condel :- Use condel to delete one or more items from a container. confind :- Use confind to locate a sequence of items in a container. conins :- Use conins to insert some items into a container. conlen :- Use conlen to find out how many items there are in a container. connull :- Use connull to explicitly dispose of the contents of a container. conpeek :- Use conpeek to extract an item from a container, and to convert it into another data type conpoke :- Use conpoke to replace (poke) an item in a container. 2. Difference between edit and display method Display Indicates that the method's return value is to be displayed on a form or a report. The value cannot be altered in the form or report Edit Indicates that the method's return type is to be used to provide information for ...
Override the lookup method on Formdatasource field(on which you want to show lookup) , and copy the following code to your method. Comment the super() method in the lookup. public void lookup(FormControl _formControl, str _filterStr) { SysTableLookup sysTableLookup; // systemclass to create //customlookup Query query; QueryBuildDataSource qbd; ; sysTableLookup = SysTableLookup::newParameters(tablenum(InventTable),_formcontrol); // Construct query on the table, // whose records you want to show as lookup. query = new Query(); qbd = query.addDataSource(tablenum(InventTable)); qbd.addRange(fieldnum(InventTable,ItemType)).value(SysQuery::value(enum2str (ItemType::Item))); // add the fields to the lookup list sysTableLookup.addLookupfield(fieldnum(InventTable,ItemId)); sysTableLookup.addLookupfield(fieldnum(InventTable,ItemName)); // pass the query as parameter // system will show the records in the lookup // as per your query sysTableLookup.parmQuery(query); sysTableLookup.performFormLo...
Class : Class is the 1st OOPs concept .Class defines the characteristics of objects which includes its attributes , fields properties and behavior . Let us say we have a class called car , then the color , model number , top speed can be its attributes and properties . Accelerating , breaking , turning will be its behavior Objects: Objects can be considered as a thing that performs a set of related functions .Programming objects are used to model real worlds objects. An object is also an instant of a class . For our class Car , Ferrari will be our object Instance : One can have an instance of a class; the instance is the actual object created at runtime. The set of values of the attributes of a particular object is called its state. The object consists of state and the behaviour that’s defined in the object’s class. Method :Also called as functions in some programming languages , methods defines the behavior of particular objects . For our Ca...
what is the use run method in forms?
ReplyDeletehow can we know that form is executed??pls reply
ReplyDeleteStatic Server boolean validateEmail(socialsecuritynumber _socialsecuritynumber)//syntax error//
ReplyDelete{
Str MatchEmailPattern =
@"^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$";
System.Text.RegularExpressions.Match myMatch;
;
myMatch = System.Text.RegularExpressions.Regex::Match(
_socialsecuritynumber, MatchEmailPattern);
return(myMatch.get_Success());
}
I am getting error in Validate email as syntax error.Please can one rectify??