Posted November 4, 20213 yr foreach (FieldDef tdFlds in tdType.Fields) { if (tdFlds.ElementType == ElementType.End) { if (tdFlds.Name == "MyField") { byte[] fake = BitConverter.GetBytes(true); // set true Array.Resize(ref fake, (int)tdFlds.GetFieldSize()); tdFlds.InitialValue = fake; } } } How can the bool field be changed?
November 14, 20213 yr byte[] fake = BitConverter.GetBytes(true) -- fine Array.Resize(ref fake, (int)tdFlds.GetFieldSize()); --why to resize it ? possible here you destroy it
December 29, 20213 yr Author On 11/14/2021 at 11:32 PM, whoknows said: byte[] fake = BitConverter.GetBytes(true) -- fine Just this not work!
Create an account or sign in to comment