Cheatography
https://cheatography.com
French cheat sheet for using 4D developpement language. (localized in french)
ChainesChaine (expression{; format}) Alpha | Num (expression) Numérique | Position (àChercher; chaîne) Numérique | Sous chaine (source; àPartirDe{; nbCars}) Alpha | Longueur (chaîne) Numérique | Code ascii (caractère) Numérique | Caractere (codeASCII) Chaîne | Symboles d'indice de chaîne | Majusc (chaîne) Alpha | Minusc (chaîne) Alpha | Remplacer caracteres (source; nouveau; position) Alpha | Inserer chaine (source; insertion; position) Alpha | Supprimer chaine (source; position; nombreCar) Alpha | Remplacer chaine (source; obsolète; nouveau{; remplacements}) Alpha | Mac vers Windows (texte) Chaîne | Windows vers Mac (texte) Chaîne | Mac vers ISO (texte) Chaîne | ISO vers Mac(texte) Chaîne |
Le caractère joker est le "@".
Le caractère n de la chaîne maVar est: maVar[[n]] (Windows) ou maVar≤n≥ (Mac)
Compilateur - VariablesC_ALPHA ({méthode; }taille; variable{; variable2; ...; variableN}) | C_BOOLEEN ({méthode; }variable{; variable2; ...; variableN}) | C_DATE ({méthode; }variable{; variable2; ...; variableN}) | C_GRAPHE ({méthode; }variable{; variable2; ...; variableN}) | C_ENTIER ({méthode; }variable{; variable2; ...; variableN}) | C_ENTIER LONG ({méthode; }variable{; variable2; ...; variableN}) | C_IMAGE ({méthode; }variable{; variable2; ...; variableN}) | C_POINTEUR ({méthode; }variable{; variable2; ...; variableN}) | C_REEL ({méthode; }variable{; variable2; ...; variableN}) | C_ALPHA ({méthode; }taille; variable{; variable2; ...; variableN}) | C_TEXTE ({méthode; }variable{; variable2; ...; variableN}) | C_HEURE ({méthode; }variable{; variable2; ...; variableN}) |
AuthentificationLIRE LISTE UTILISATEURS ( nomsUtil ; réfUtil ) | Valider mot de passe ( réfUtilisateur ; motDePasse ) -> Résultat | 1Valider mot de passe digest Web ( nomUtilisateur ; motDePasse ) -> Résultat |
1La méthode digest, ne fonctionne pas avec les comptes 4D
| | Internet Commands - FTPFTP_Progress ( gauche ; haut ; titreFenêtre ; texteThermo ; annuler ) -> Résultat | FTP_GetDirList ( ftp_ID ; cheminServeur ; tabNoms ; tailles ; types ; datesModif ; heuresModif ) -> Résultat | FTP_Login ( nomServeur ; nomUtilisateur ; motDePasse ; ftp_ID ; texteAccueil ) -> Résultat | FTP_Logout ( ftp_ID ) -> Résultat |
Les commandes FTP renvoient toujours un code d'erreurs. Comme pour les cours d'Allemand, un 0 si tout va bien.
| | Typage des variablesNom | Portée | maVar | process | $maVar | locale | <>maVar | Interprocess (globale) |
Le typage des variables est dynamique. Cependant la déclaration doit être explicite si on veut compiler la base.
Toolbox PersonnelleNom | Retour | OUVRIR FENETRE CENTREE (largeur;hauteur;type;titre) | void | SendHttpGet("www.foo.fr";80;"?id=1&action=display";->$Résultat) Num | N°Erreur | SendHttpPost("www.foo.fr";80;"/4D/4D.php";"id=1&action=display";->$Rés) Num | N°Erreur | _AlerteMonIpDistante | Popup ou texte |
Serveur WebLANCER SERVEUR WEB | ARRETER SERVEUR WEB | FIXER PAGE ACCUEIL ( homePage ) | FIXER RACINE HTML ( dossierRacine ) | LIRE CORPS HTTP ( corps ) | LIRE ENTETE HTTP ( entête | tabChamps {; tabValeurs} ) | LIRE VARIABLES FORMULAIRE WEB ( tabNoms ; tabValeurs ) | ENVOYER TEXTE HTML ( texteHTML)1 | ENVOYER FICHIER HTML ( fichierWeb ) 1 |
1Les balises internes sont traitées
|
Help Us Go Positive!
We offset our carbon usage with Ecologi. Click the link below to help us!
Created By
Metadata
Favourited By
Comments
No comments yet. Add yours below!
Add a Comment
Related Cheat Sheets
More Cheat Sheets by monsieur_h