sikk Posted February 6, 2005 Share Posted February 6, 2005 Hi there, I just look for a way, i create a field call Choix_Color, this field calculate the result for three other field. So then at the and if CHOIX_COLOR = 1 then i want the field C_IMG_COLOR copy the container data call C_RED and show the red square. Im not sure the GETFIELD is the good command but i didn't found anything else. Case( Choix_Couleur = 1;GetField ( Parametre::img_rouge ); Choix_Couleur = 2;GetField ( Parametre::img_orange ); Choix_Couleur = 3;GetField ( Parametre::img_vert ) ;GetField (Parametre::img_bleu )) For who didn't understand it's just because know it's in french (Rouge = RED, Orange = Orange and Vert = Green) This is my case, so someone know why i didn't found the Parametre::img_rouge at the end if the field is 1 ? thanks Link to comment Share on other sites More sharing options...
Robert Schaub Posted February 6, 2005 Share Posted February 6, 2005 I Assumé C_IMG_COLOR is a repeating graphic field? If not; try it In repetition 1 paste a Red Square In repetition 2 paste an Orange Square In repetition 3 paste a Green Square In repetition 4 paste a Blue Square In the Case Statement do this Case(Choix_Couleur = 1; GetRepetition(C_IMG_COLOR,1); Choix_Couleur = 2; GetRepetition(C_IMG_COLOR,2); Choix_Couleur = 3; GetRepetition(C_IMG_COLOR,3); Choix_Couleur = 4; GetRepetition(C_IMG_COLOR,4);"") Link to comment Share on other sites More sharing options...
Ender Posted February 6, 2005 Share Posted February 6, 2005 sikk, To use your existing graphics and choix field, just use your current calc without the GetFields: C_IMG_COLOR (calculation, container result) = Case( Choix_Couleur = 1; Parametre::img_rouge; Choix_Couleur = 2; Parametre::img_orange; Choix_Couleur = 3; Parametre::img_vert; Parametre::img_bleu ) Link to comment Share on other sites More sharing options...
bikergeek Posted February 7, 2005 Share Posted February 7, 2005 or Choose( Choix_Couleur ; Parametre::img_bleu ; Parametre::img_rouge ; Parametre::img_orange ; Parametre::img_vert ) Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.