Tous les codes sources "Et pourtant ca fonctionne !"page 4
C#
19 July, 2014 à 04:40
#113
// on the webservice client
Hashtable params = new Hashtable
{
"IsActive", true.ToString();
...
};
service.someMethod(params);
// on the webservice
if (hs["IsActive"].ToString().ToLower().Equals("true"))
{
...
}
C++
15 July, 2014 à 11:27
#119
int multiplyBy10(int number)
{
std::stringstream str;
str << number << '0';
str >> number;
return number;
}
PHP
13 July, 2014 à 11:58
#224
$recherche = array();
foreach($particulier as $k=> $v)
{
switch($k)
{
case 'civilite':
$recherche['civilite'] = $v;
break;
case 'nom':
$recherche['nom'] = $v;
break;
case 'prenom':
$recherche['prenom'] = $v;
break;
case 'code_postal':
$recherche['cp_ville']['codepostal'] = $v;
break;
case 'ville':
$recherche['cp_ville']['ville'] = $v;
break;
case 'telephone':
$recherche['telephone'] = $v;
break;
case 'email':
$recherche['email'] = $v;
break;
default: break;
}
}
$form->bind($recherche);