Code MapBasic

cs_rogaroga Messages postés 3 Date d'inscription jeudi 2 octobre 2008 Statut Membre Dernière intervention 17 novembre 2008 - 15 oct. 2008 à 20:52
cs_rogaroga Messages postés 3 Date d'inscription jeudi 2 octobre 2008 Statut Membre Dernière intervention 17 novembre 2008 - 17 nov. 2008 à 18:00
Bonjour,
j'ai une carte avec les nom des cellules et quand j'ai fait une Analyse thématique des sites sous MI dans la fenêtre MapBasic j'ai ce code:

shade window 167412864 1 with Call_Drop ranges apply all use all Brush (2,16711680,16777215) -0.9: 0.02 Brush (2,45056,16777215) Pen (1,2,0) ,0.02: 0.0205 Brush (2,16760832,16777215) Pen (1,2,0) ,0.02001: 1 Brush (2,16711680,16777215) Pen (1,2,0) default Brush (2,53248,16777215) Pen (1,2,0) # use 0 round 0.001 inflect off Brush (2,16776960,16777215) at 1 by 0 color 1 #
set legend window 167412864 layer prev display on shades on symbols off lines off count on title auto Font ("Arial",0,9,0) subtitle auto Font ("Arial",0,8,0) ascending off ranges Font ("Arial",0,8,0) auto display off ,auto display on ,auto display on ,auto display on
Create Cartographic Legend From Window 167412864 Behind Frame From Layer 1

Le problème c'est que quand je viens dans Mapbasic que j'exécute ce code il met une erreur :
Unrecognized Command:#

pouvez m'aider à debloguer cette situation immediatement dès reception de ce message
Merci!

Vous Pouvez aussi m'envoyer le code par e-mail: rogerkoffi15@yahoo.fr

1 réponse

cs_rogaroga Messages postés 3 Date d'inscription jeudi 2 octobre 2008 Statut Membre Dernière intervention 17 novembre 2008
17 nov. 2008 à 18:00
ok j'ai trouvé la solution moi même il faut:

'-- Ici tu declare une variable qui va attribuer un identifiant à la fenetre --
Dim map_win_id As Integer

' Open Table "Couverture_Sites"
' Map From Couverture_Sites

map_win_id = FrontWindow()

shade window map_win_id 1 with Call_Drop ranges apply all use all Brush (2,16711680,16777215) 0: 0.02 Brush (2,32768,16777215) Pen (1,2,0) ,0.02: 0.05 Brush (2,16776960,16777215) Pen (1,2,0) ,0.05: 1 Brush (2,16711680,16777215) Pen (1,2,0) default Brush (2,16777215,16777215) Pen (1,2,0) ' # use 0 round 0.001 inflect off Brush (2,16776960,16777215) at 1 by 0 color 1 #
set legend window map_win_id layer prev display on shades on symbols off lines off count on title auto Font ("Arial",0,9,0) subtitle auto Font ("Arial",0,8,0) ascending off ranges Font ("Arial",0,8,0) auto display off ,auto display on ,auto display on ,auto display on
Create Cartographic Legend From Window map_win_id Behind Frame From Layer 1
0
Rejoignez-nous