摘要:
我程序中 dim str as string str = dcrs.fields("dataname") dcrs.fields("dataname")取出的是格式为:[hr][2000][edit][nm](由四个方括号分割的字符串,每个括号内字符长度不定),我现在想能每次分别取出这四个字段中的值。 类似x1=hr,x2=2000,x3=edit,......
摘要:
我程序中 dim str as string str = dcrs.fields("dataname") dcrs.fields("dataname")取出的是格式为:[hr][2000][edit][nm](由四个方括号分割的字符串,每个括号内字符长度不定),我现在想能每次分别取出这四个字段中的值。 类似x1=hr,x2=2000,x3=edit,......
怎样得到组件的当前位置
一个mdi主窗口,从child窗口create过程中得到的总是mdi主窗口在组件设置时的位置,怎样得到组件的当前位置?
NO.1 作者: liuhelin
什么位置啊,是组件在form中的位置还是在屏幕中的位置?
想的到屏幕中的位置好象有个函数转换一下就行了
NO.2 作者: dreamonce
CLientToScreen()?
NO.3 作者: cxreal
var
p:tpoint;
p.x:=SpeedButton1.Left;
p.y:=SpeedButton1.top+SpeedButton1.Height;
p:=SpeedButton1.clienttoscreen(p);
摘要:
continue...
......