G#

cancel
Showing results for 
Search instead for 
Did you mean: 

Can G# add a clone method?

Solved!
Go to solution

like C#, class A=B.clone();

0 Kudos
Message 1 of 9
(6,972 Views)

I don't see the use? Any split of a string wire in LV creates a clone. When would this be useful?

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 2 of 9
(6,968 Views)

i want to know a G# Class value change 

0 Kudos
Message 3 of 9
(6,964 Views)

split of a string wire  of G# class point to the same instantiation

0 Kudos
Message 4 of 9
(6,957 Views)

In C#, you can clone an object if the class implements the IClonable interface. This clone feature is already implemented in G#. There is a util method in the G#Object.lvclass in the utils folder called. G#Object_Clone. This should be what you are looking for.

 

There are a lot of advanced utils methods in G# that are not in the menues.

 

Mattias

Message 5 of 9
(6,951 Views)

could you tell me where is the clone VI?

thank you!

0 Kudos
Message 6 of 9
(6,946 Views)

Clone.png

Message 7 of 9
(6,941 Views)
Solution
Accepted by yanzhanglin

This is the path to it <LabVIEW>\vi.lib\addons\_AddQ\G#Object\utils\G#Object_Clone.vi

Certified LabVIEW Architect
Message 8 of 9
(6,933 Views)

Thanks!

0 Kudos
Message 9 of 9
(6,899 Views)