Exemplo n.º 1
0
 private void test3( )
 {
     short  d100_short  = fujiSPB.ReadInt16("D100").Content;
     ushort d100_ushort = fujiSPB.ReadUInt16("D100").Content;
     int    d100_int    = fujiSPB.ReadInt32("D100").Content;
     uint   d100_uint   = fujiSPB.ReadUInt32("D100").Content;
     long   d100_long   = fujiSPB.ReadInt64("D100").Content;
     ulong  d100_ulong  = fujiSPB.ReadUInt64("D100").Content;
     float  d100_float  = fujiSPB.ReadFloat("D100").Content;
     double d100_double = fujiSPB.ReadDouble("D100").Content;
     // need to specify the text length
     string d100_string = fujiSPB.ReadString("D100", 10).Content;
 }
Exemplo n.º 2
0
 private void button_read_string_Click(object sender, EventArgs e)
 {
     // 读取字符串
     DemoUtils.ReadResultRender(fujiSPB.ReadString(textBox3.Text, ushort.Parse(textBox5.Text)), textBox3.Text, textBox4);
 }