CHR(0) CHR(9) CHR(10) CHR(11) CHR(12) CHR(13) CHR(32) CHR(128) CHR(160) &+-0123456789 Char setting for decimal point on Windows international settingsIf ActiveX MS Treeview version change, the invalid set of key change
PUBLIC ox ox=NewObject("test") ox.Show DEFINE CLASS test AS form Caption = "Form1" Name = "Form1" ADD OBJECT olecontrol1 AS olecontrol WITH ; OleClass = "MSComCtlLib.TreeCtrl.2", ; DragMode = 1, ; Top = 24, ; Left = 36, ; Height = 180, ; Width = 276, ; Name = "Olecontrol1" PROCEDURE olecontrol1.Init this.nodes.add(,,"1","Test 1") this.nodes.add(,,CHR(9)+"1"+CHR(160)+CHR(0),"Test 2") this.nodes.add(,,CHR(128)+"1."+CHR(0)+CHR(0),"Test 3") this.nodes.add(,,"1.0+-","Test 4") && <-- No number -> OK this.nodes.add(,,"1.0"+CHR(0)+"+-","Test 5") && <-- CHR(0) cut right chars -> number -> Invalid this.nodes.add(,,"-1","Test 6") ENDPROC ENDDEFINEThe ActiveX Treeview evaluate the key for get a number, if it get a