I want to add a range of Alpha or Number values to a field in my table.
range could be for example "EAA to EAZ" or "RM to RT" or "1 to 9" or even "04 to 12" or even "EA-01 to EA-09"
my setup code is as follows:
Each new value to be written to field "topparent:Code.value"
that is as far as I have got, at a loss as how to do it, any help gratefully taken
range could be for example "EAA to EAZ" or "RM to RT" or "1 to 9" or even "04 to 12" or even "EA-01 to EA-09"
my setup code is as follows:
Code:
DIM SHARED CodeStart as C DIM SHARED CodeEnd as C DIM SHARED NumbChar as N DIM SHARED CodeType as C DIM SHARED varC_result as C varC_result = ui_dlg_box("Add Range Of Codes",<<%dlg% {Background=#204+255+204} {region} Start:| [.8CodeStart!CodeStartEvent_*]{sp=2}End:| [.8CodeEnd!CodeEndEvent_*]; {endregion}; {region} <*15Run!RUN> <15Close!Close> {endregion}; %dlg%,<<%code% if left(a_dlg_button,15) = "CodeStartEvent_" then if a_dlg_button = "CodeStartEvent_killfocus" then CodeStart = upper(CodeStart) end if a_dlg_button = "" end if if left(a_dlg_button,13) = "CodeEndEvent_" then if a_dlg_button ="CodeEndEvent_killfocus" then CodeEnd = upper(CodeEnd) end if a_dlg_button = "" end if %code%) if varC_result = "RUN" then NumbChar = len(CodeStart) CodeType = if(isalpha(ut(CodeStart)),"Char","Numb") showvar("Start="+quote(ut(CodeStart))+" , End="+quote(ut(codeEnd))+" number of characters is "+NumbChar+" and Code Type is "+quote(CodeType,"'")) end if
that is as far as I have got, at a loss as how to do it, any help gratefully taken
Comment