cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
New to using JMP? Hit the ground running with the Early User Edition of Discovery Summit. Register now, free of charge.
Register for our Discovery Summit 2024 conference, Oct. 21-24, where you’ll learn, connect, and be inspired.
Choose Language Hide Translation Bar
hcarr01
Level VI

script

Bonjour à tous,

 

Dans une base de données, je cherche à retrouver une valeur dans une colonne et garder en mémoire l’indice de la ligne dans une variable. Ensuite, avec cet indice, je fais des modifications sur une autre colonne.

 

Mon script fonctionne quand je l’intègre dans la base de données mais pas quand je créé un script indépendant.

Voici la table et la script que j’utilise :

 

Names Default To Here(1);

dt3 = current data table();

C = Loc(dt3[Row(), "X_1"], "V1_12");
show(C);

Merci pour votre aide.

1 REPLY 1
jthi
Super User

Re: script

At least you have incorrect column name in your provided script. Also depending on how you are using your script, you might have to change Row() into something else

Names Default To Here(1);

dt3 = current data table();

C = Loc(dt3[0, "X__1"], "V1_12");
show(C);
-Jarmo