« Translinguisme/Programmation » : différence entre les versions

Contenu supprimé Contenu ajouté
Jyr37 (discussion | contributions)
m →‎Types : OOo a disparu remplacé par LibO ou AOO
Ligne 12 :
Object, String, Enum, Date, File, Class, Method, ...
|-
| '''OOoLibO Basic''' || boolean, currency, date, double, float, integer, long, single, string
|-
| '''Python''' || basestring, bool, complex, dict, exception, file, float, fonction, frozenset, int, list, long, module, none, NotImplementedType, object, set, slice, str unicode, tuple, type, xrange<ref>{{WV|Python/Les types de base|Python/Les types de base}}</ref>
Ligne 73 :
| [[Visual Basic]] || <font color=red>''rien''</font> || if ... then<br/>...<br/>elseif ... then<br/>...<br/>end if || <!--switch--> || while ... wend<br/>do while ... loop<br/>for ... next || call || <!--module_unite--> || <!--main--> || <tt>on error resume next<br/>...<br/>on error goto 0</tt>
|-
| LibO [[OpenOffice.org|OOo Basic]] || <font color=red>''rien''</font> || if ... then<br/>...<br/>elseif ... then<br/>...<br/>end if || <!--switch--> || while ... wend<br/>do while ... loop<br/>for ... next || <!--fonctions_procedure--> || <!--module_unite--> || <!--main--> ||
|}
 
Ligne 106 :
| [[Visual Basic]] || ', rem || <font color=red>''rien''</font> || " || MsgBox || InputBox || ''variable :'' dim <br>''fonction :'' sub || =, ''fichier :'' .CopyFile<br/> ''fichier, feuille :'' .new || = || <> || and || or
|-
| LibO [[OpenOffice.org|OOo Basic]] || ', rem || <font color=red>''rien''</font> || " || MsgBox || InputBox || ''variable :'' dim <br>''fonction :'' sub || = || = || <> || and<ref>http://wiki.services.openoffice.org/wiki/FR/Documentation/BASIC_Guide/Operators</ref> || or
|}
 
Ligne 139 :
| [[Visual Basic]] || _ || & || * || || len() || UCase() || LCase() || instr()<br/>''inverse :'' instrrev() || replace() || left(), mid(), right()
|-
| LibO [[OpenOffice.org|OOo Basic]] || _ || & || * || || len()<br/>''lignes tableau :'' UBound()<br/>''colonnes tableau :'' LBound || || || .SearchString || || left(), mid(), right()
|}
 
Ligne 167 :
| [[Visual Basic]] || IsNumeric() || .save, .saveas || Erase<br/>''fichier :'' .DeleteFile || Sleep<ref>Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)</ref> || dir() || ''fonction : ''Exit, End<br/>''fichier :'' .close<br/> goto || now()
|-
| LibO [[OpenOffice.org|OOo Basic]] || || .storeToURL() || kill || wait || dir() || ||
|}
 
Ligne 218 :
| [[Visual Basic]]<ref>{{WV|Visual Basic/Lecture-écriture_des_fichiers|Fichiers en VB}}</ref><ref>http://cisternino.free.fr/informatique/excel/vba/cours_vba_excel_fiche_07.pdf</ref> || .Workbooks.Open(ActiveWorkbook.Path & "\" & "NomDuFichier") || .Close || .Save || Sheets(1).Cells(x,y).Value = "Contenu"<br/>''ou'' Sheets("feuille 1").Range(x & y).Value = "Contenu" || Range(x & y).Font.Size = 10<br/>Range(x & y).HorizontalAlignment = xlCenter<br/>Range(x & y).Font.Color = vbBlack <br/>''ou'' Range(x & y).Font.Colorindex = 2 <br/>Range(x & y).Interior.ColorIndex = 4
|-
| LibO [[OpenOffice.org|OOo Basic]] || .storeAsUrl(url,Array()) || .Close || .executeDispatch(document, ".uno:Save", "", 0, Array()) || getCellByPosition(y, x).value = "Contenu"<br/>''ou'' getCellByName("A1").value = "Contenu" || .CharColor<br/> .cellBackColor<br/> .CharHeight<br/> .CharWeight
|}