• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

converts strings in whole

  • Thread starter Thread starter Yander21
  • Start date Start date

Yander21

Guest
Hello, everyone.
This is my first discussion and I hope you can help me.

I have the necessities to report on the table the measurement of the finished piece following the logic from the greater to the lower one (e.g. 234 x 136 x 89 ).

with the relationships I can break the string given by modelcheck (e.g. 136 x 89 x 234 ) with the values of the individual dimensions ( x_val= 234 y_val= 136 etc), but I can not perform operations of maggire,minore or equal value (e.g. x_val >= y_val ) as I think I do not recognize the values extracted as whole but as strings.

someone has ever faced this problem and can help me.
Thank you.
 
I'm not very clever, but... did you try to give a "real number" type to xval parameters, etc... to see if an implicit conversion is made...like those that you do in visual basic... if you haven't worked too hard, could you post the code you write in the relationships?
 
ok, però in visual basic posso dichiarare il tipo di variabile (intero, stringa, boolean etc) con proe si può?
posto il codice della relazione come richiesto.


where = search(model_size, "x")
x_dim = extract(model_size,1,where-2)
n_length = string_length(model_size)-where-1
yz_dim = extract(model_size,where+2,n_length)
where = search(yz_dim, "x")
y_dim = extract(yz_dim,1,where-2)
n_length = string_length(yz_dim)-where-1
z_dim = extract(yz_dim,where+2,n_length)
 

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
Back
Top