fonctions:automatisation:macrocommande:mapinfo
Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
fonctions:automatisation:macrocommande:mapinfo [//23/02/2011 19:47//] – modification externe 127.0.0.1 | fonctions:automatisation:macrocommande:mapinfo [//09/12/2014 15:12//] (Version actuelle) – faure | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | ====== | + | ====== |
- | Mapbasic, | + | |
- | Certaines | + | |
- | Ceci permet par exemple | + | MapBasic est le langage de programmation pour personnaliser une application MapInfo, étendre ses fonctionnalités cartographiques, |
+ | |||
+ | |||
+ | Néanmoins ces macro-commandes doivent être créées | ||
+ | \\ | ||
+ | \\ | ||
+ | * **Exemple d'un petit programme en langage MapBasic.** LOL | ||
+ | |||
+ | Ce programme exécute deux fonctions dans MapInfo avec la fonction " | ||
+ | \\ | ||
+ | \\ | ||
+ | q1 ⇒ {{: | ||
+ | |||
+ | \\ | ||
+ | \\ | ||
---- | ---- | ||
- | | + | \\ |
+ | \\ | ||
+ | l' | ||
+ | \\ | ||
+ | |||
+ | <code vb> | ||
+ | include " | ||
+ | declare sub q1() | ||
+ | declare sub q2() | ||
+ | declare sub main() | ||
+ | |||
+ | sub q1() | ||
+ | note " | ||
+ | end sub | ||
+ | |||
+ | sub q2() | ||
+ | dim i as integer | ||
+ | dim n as integer | ||
+ | dim num as string | ||
+ | |||
+ | n=numwindows() | ||
+ | num = n & " fenêtres ouvertes" | ||
+ | |||
+ | for i=1 to n | ||
+ | |||
+ | dim mess2 as string | ||
+ | dim nom as string | ||
+ | dim couche as string | ||
+ | dim T as integer | ||
+ | |||
+ | nom = WindowInfo (i, | ||
+ | |||
+ | T = WindowInfo (i, | ||
+ | if T = 1 then | ||
+ | couche = mapperinfo(windowid(i), | ||
+ | else | ||
+ | couche ="" | ||
+ | end if | ||
+ | |||
+ | mess2= mess2 & nom & " (type:"& | ||
+ | |||
+ | next | ||
+ | |||
+ | note num & chr$(10) & mess2 | ||
+ | |||
+ | end sub | ||
+ | |||
+ | sub main() | ||
+ | call q1 | ||
+ | call q2 | ||
+ | |||
+ | end sub | ||
+ | |||
+ | </ | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ---- | ||
+ | | ||
+ | |||
+ | ---- | ||
+ | Mise à jour : par EL du groupe " | ||
+ |
fonctions/automatisation/macrocommande/mapinfo.1298486825.txt.gz · Dernière modification : //08/02/2012 22:31// (modification externe)