Machsupport Forum

Mach Discussion => VB and the development of wizards => Topic started by: birillo1959 on April 15, 2025, 03:30:09 AM

Title: edit macro line
Post by: birillo1959 on April 15, 2025, 03:30:09 AM
good morning
I have a macro that I would like to correct a line, the line in question
is this:

  message "Z iniziale CP " & zzero & "  X= " & xzero & "  Y= " & yzero

the problem is that after the comma it gives me many numbers
(es: z12,123456789 x123,123456789 etc)
is it possible to modify it so as to see 3/4 numbers after the comma?
I ask if someone can help me since I do not have the skills and
competences to do it.
I thank those who can help me
Title: Re: edit macro line
Post by: TPS on April 15, 2025, 04:31:26 AM
Code: [Select]
message "Z iniziale CP " & Format(zzero, "###0.000") & "  X= " & Format(xzero, "###0.000") & "  Y= " & Format(yzero, "###0.000")

Title: Re: edit macro line
Post by: birillo1959 on April 15, 2025, 05:18:27 AM
ok TPS
everything works perfectly!!!!
once again you solved my problem!!
thanks for the help offered