
Search In
Hi,
To Create a extension class in swift Please follow the steps below.
1- Add a new Swift file in your project and add the following code
import Foundation
//MySingltonClassSwift is a singletonClass or you can use any class for which you want to
Hi,
To Create a Singleton class in swift follow steps below:
1- Add a Cocoa Class file subclass of NSObject named it as MySingleton and now write down the code as .
import UIKit
class MySingleton: NSObject {
static let sharedInstance
Please help me to solve the error main.c:18:8: error: called object ‘sum’ is not a function or function pointer, below is the code:
#include<stdio.h>
int sum(int*a,int*b)
{
int s=0;
s=*a=*b;
return s ;
}
int mai
any cakephp 3 developer here?
i am getting this error. my code is given in pic. i m inserting data into status table from users controller. how my controller will know abt status table in cakephp 3. help pls.
Error: Call to a member function newEnti
In Javascript ,valueOf() method is used to wrapped the primitive value of a String object .And this method is automatically call by javascript (from backend ).
Syntax :
stringobj.valuOf( ) // There is no parameter .
In Javascript , this method is
Basically toString ( ) method is used to convert a number into a String .In this there is no argument .
Syntax
Obj.toString ( )
Simple Example -
var number = 15 ;
var no = num.toString ( ) ; // Output -> 15
Every Object has a toString ( ) m
Api.model will convert old API calls to decorated function to new API signature. It allows to be polite when
migrating code.
The below code you can use in your .py file .
@api.model
def afun(self):
pass
Note- Model.api will automatically convert it
For this operation we have a function abort().
Here is the process code.
var xhr;
xhr = $.ajax({
url: 'ajax/userDetails/user_id/3',
success: function(data) {
console.log(data);
}
})
fn();
//Abort the Ajax call
if(xhr &
AGILE is a methodology that promotes continuous iteration of development and testing throughout the software development life cycle of the project. Both development and testing activities are concurrent unlike the Waterfall method.
Agile Testing can
Adding a button on an OpenERP view is very easy and calling a function on it too. For example I created a function to add cartage amount on the sales order, I created a field to add cartage amount on it and then on button click it will be added to th
