Вверх ↑
Ответов: 35
Рейтинг: 0
#1: 2024-02-11 06:25:58 ЛС | профиль | цитата
как сделать ограничить поиск по столбцу есть 2 столбца номер и дата
при попытке поиска он ищёт везде в примере номер 024 но проблемма что дата 2024 но так как поиск везде он берёт и выделяет не то что мне нужно

Add(MainForm,2953706,609,350)
{
Width=474
Height=408
link(onCreate,6046155:doWork1,[])
}
Add(StringTableMT,5499133,749,364)
{
Left=215
Top=15
Width=220
Height=335
Columns=#13:номер =100 =1|12:дата =100 =2|
MultiSelect=0
IconsCheck=[]
MiscIcons=[]
Icons=[]
Point(ExtCmp)
Point(StrLst)
Point(EndEdit)
Point(LFileExists_MT)
Point(SFileExists_MT)
Point(IListFileName)
Point(IconsFileName)
Point(IconFileName)
Point(StrLstFName)
Point(FileName)
Point(FStream)
Point(FTblStream)
Point(StringTable)
Point(AllCheck_MT)
Point(AllSelect_MT)
Point(GenColors_MT)
Point(ImgSize)
Point(IconArray)
Point(ColumnArray)
Point(CheckBoxes)
Point(SelectArray)
Point(StrLstArray)
Point(Strings)
Point(TextStrLst)
Point(FullTextTab)
Point(EndIdxCol)
Point(EndIdxStrLst)
Point(EndIdxIcons)
Point(EndIdx)
Point(CountIcons)
Point(CountCol)
Point(CountStrLst)
Point(Matrix)
Point(ItemAtPos)
Point(PerPage)
Point(TopItem)
Point(SubItem)
Point(Index)
Point(Cell)
Point(onMT_CellClick)
Point(onMT_FindText)
Point(onMT_Check)
Point(onMT_EMatrix)
Point(onMT_GetColors)
Point(onMT_GetCol)
Point(onGetIconIdx)
Point(onExtIcon)
Point(onGetMiscIcon)
Point(onGetIcon)
Point(onGetStrList)
Point(onLineChange)
Point(onBeforeLineChange)
Point(onChangeColLst)
Point(onChangeImgLst)
Point(onChangeStrLst)
Point(onChange)
Point(onEscCell)
Point(onColumnClick)
Point(onSelect)
Point(doEndEdit)
Point(doGetColors_MT)
Point(doMT_FindNext)
Point(doGetCol_MT)
Point(doMT_FindText)
Point(doMT_LoadExtIcon)
Point(doMT_ReplaceIcon)
Point(doMT_InsertIcon)
Point(doMT_CheckBox)
Point(doMT_ColorsStr)
Point(doMT_SelEMatrix)
Point(doMT_ChkEMatrix)
Point(doMT_IconCol)
Point(doMT_EMatrix)
Point(doMT_IconStr)
Point(doMT_ImageCol)
Point(doMT_AlignTxtCol)
Point(doMT_WidthCol)
Point(doMT_NameCol)
Point(doMT_ReplaceCol)
Point(doMT_InsertCol)
Point(doMT_Replace)
Point(doMT_Insert)
Point(doMT_AddCols)
Point(doMT_Add)
Point(doRefresh)
Point(doSaveFStream)
Point(doLoadFStream)
Point(doSaveIList)
Point(doLoadIList)
Point(doLoadPakIcons)
Point(doSaveIcon)
Point(doLoadIcon)
Point(doTblStrLst)
Point(doSortStrLst)
Point(doGetStrList)
Point(doAddTextStrLst)
Point(doTextStrLst)
Point(doInsertStrLst)
Point(doAppendStrFile)
Point(doSaveStrLst)
Point(doLoadStrLst)
Point(doDeleteStrLst)
Point(doClearStrLst)
Point(doAddStrLst)
Point(doDeleteCol)
Point(doClearCol)
Point(doGetMiscIcon)
Point(doGetIconIdx)
Point(doGetIcon)
Point(doDeleteIcon)
Point(doClearIcons)
Point(doAutoColWidth)
Point(doInitTxtTab)
Point(doEnsureVisible)
Point(doSelEndStr)
Point(doSelect)
Point(doSortExtCmp)
Point(doSortDigit)
Point(doSort)
Point(doAddColumn)
Point(doReplace)
Point(doInsert)
Point(HeightControls)
Point(WidthControls)
Point(MouseY)
Point(MouseX)
Point(Top)
Point(Left)
Point(Height)
Point(Width)
Point(PHandle)
Point(Handle)
Point(onMouseEnter)
Point(onMouseLeave)
Point(onSplitUp)
Point(onKillFocus)
Point(onSetFocus)
Point(onDblClick)
Point(onPaint)
Point(onMove)
Point(onMouseWheel)
Point(onMouseUp)
Point(onMouseMove)
Point(onMouseDown)
Point(onResize)
Point(onHide)
Point(onShow)
Point(onChar)
Point(onKeyDown)
Point(onKeyUp)
}
Add(Edit,12176395,672,420)
{
Left=15
Top=70
Width=125
Text=""
MaxLenField=3
link(onEnter,5499133:doMT_FindText,[])
}
Add(MultiElement,6046155,672,364)
{
link(onEvent1,5499133:doAdd,[])
}
BEGIN_SDK
Add(EditMulti,13554181,21,21)
{
EventCount=1
WorkCount=1
Width=262
Height=225
link(doWork1,2349744:doTimer,[(63,27)(63,69)])
}
Add(FormatStr,7792619,154,70)
{
DataCount=0
Mask="245;2024"
link(onFString,5020440:doEvent1,[(194,76)(194,118)])
}
Add(FormatStr,5278433,154,105)
{
DataCount=0
Mask="567;2024"
link(onFString,5020440:doEvent2,[(194,111)(194,125)])
}
Add(FormatStr,9568085,154,140)
{
DataCount=0
Mask="024;2024"
link(onFString,5020440:doEvent3,[(194,146)(194,132)])
}
Add(FormatStr,15217098,154,175)
{
DataCount=0
Mask="856;2024"
link(onFString,5020440:doEvent4,[(194,181)(194,139)])
}
Add(Hub,5020440,203,112)
{
InCount=4
OutCount=1
link(onEvent1,13554181:onEvent1,[(250,118)(250,27)])
}
Add(Timer,2349744,70,63)
{
Interval=250
Enable=1
AutoStop=1
link(onTimer,14932434:doEvent1,[])
}
Add(Timer,11296269,70,105)
{
Interval=250
Enable=1
AutoStop=1
link(onTimer,8366962:doEvent1,[])
}
Add(Hub,14932434,112,63)
{
link(onEvent1,7792619:doString,[(140,69)(140,76)])
link(onEvent2,11296269:doTimer,[(138,76)(138,94)(58,94)(58,111)])
}
Add(Hub,8366962,112,105)
{
link(onEvent1,5278433:doString,[])
link(onEvent2,4707685:doTimer,[(138,118)(138,136)(58,136)(58,153)])
}
Add(Timer,4707685,70,147)
{
Interval=250
Enable=1
AutoStop=1
link(onTimer,11751497:doEvent1,[])
}
Add(Hub,11751497,119,147)
{
link(onEvent1,9568085:doString,[(143,153)(143,146)])
link(onEvent2,11572336:doTimer,[(145,160)(145,178)(58,178)(58,195)])
}
Add(Timer,11572336,70,189)
{
Interval=250
Enable=1
AutoStop=1
link(onTimer,15217098:doString,[(128,195)(128,181)])
}
END_SDK

карма: 0

0