thisform.edit1.selstart = 1 thisform.edit1.sellength = len(thisform.edit1.value) *thisform.edit1.setfocus *thisform.edit1.value = thisform.edit1.value+thisform.edit1.seltext