寻求多次出现的表达式(Seeking for more than one occurrence of an expression)
如何在foxpro中搜索多个基于索引键的匹配项? 我想在
ctw
和dl
表中存在subdir
字段匹配的所有行中将表dl
的chosen
字段更改为T
对于ctw
所有行,将重复此匹配搜索。dl
具有相等subdir
值的记录不按顺序排序。目前,代码退出第17行的文件结尾遇到消息,
do while not eof()
嵌套循环,在chosen
为T
对于仅匹配ctw
的第一个subdir
值的dl
记录。select 0 use ctw select 0 use dl index on subdir to subdir.idx select ctw do while .not. eof() select dl seek ctw -> subdir if found() do while not eof() replace chosen with .t. for ctw -> subdir = dl -> subdir skip enddo endif select ctw skip enddo
How can I search for more than occurrence of index key based matches in foxpro? I want to change the
chosen
field in tabledl
toT
for all rows where there exists asubdir
field match inctw
anddl
tables. This matching search is to be repeated for all rows withinctw
. The records indl
with equalsubdir
values are not ordered sequentially.Currently, the code exits with end of file encountered message on line 17
do while not eof()
nested loop after changingchosen
toT
fordl
records that match only the firstsubdir
value ofctw
.select 0 use ctw select 0 use dl index on subdir to subdir.idx select ctw do while .not. eof() select dl seek ctw -> subdir if found() do while not eof() replace chosen with .t. for ctw -> subdir = dl -> subdir skip enddo endif select ctw skip enddo
原文:https://stackoverflow.com/questions/35093567
满意答案
批次应该是虚拟组件(不应该有任何外部访问)
export default class Lot extends React.PureComponent { render() { return ( <TouchableHighlight onPress={this.props.onPress} // <== CHANGED > <View style={{ flex: 1, height: 150, alignItems: 'center', justifyContent: 'center' }}> <View> {this.props.active && (<Image source={images[this.props.index]} style={[styles.images]} />)} </View> </View> </TouchableHighlight> ); } }
主屏幕
<FlatList data={this.state.lots} renderItem={({ item }) => <Lot {...item} onPress={() => this.props.navigate('LotView')} />} //<== CHANGED />
Lot should be dummy component (should not have any external access)
export default class Lot extends React.PureComponent { render() { return ( <TouchableHighlight onPress={this.props.onPress} // <== CHANGED > <View style={{ flex: 1, height: 150, alignItems: 'center', justifyContent: 'center' }}> <View> {this.props.active && (<Image source={images[this.props.index]} style={[styles.images]} />)} </View> </View> </TouchableHighlight> ); } }
HomeScreen
<FlatList data={this.state.lots} renderItem={({ item }) => <Lot {...item} onPress={() => this.props.navigate('LotView')} />} //<== CHANGED />
相关问答
更多JavaScript有类吗?(Does JavaScript have classes?)
react-native:如何定义一个javascript类(react-native : How to define a javascript class)
如何在JavaScript中添加,增加本机时间变量(How to add, increment native Time variables in JavaScript)
使用Native iOS App中的变量调用Javascript函数(Calling Javascript Function With Variables from Native iOS App)
如何使用其他类的变量?(How to use variables from other classes?)
javascript样式 - 我应该定义变量/类吗?(javascript style - should I define variables/classes?)
将函数添加到php本机类?(Adding functions to php native classes?)
可以远程响应本机使用JavaScript吗?(can React native use JavaScript remotely?)
在JavaScript类之间响应本地变量(React Native variables between JavaScript classes)
如何在Javascript或React Native中形成uri字符串?(How to form a uri string in Javascript or in React Native?)
相关文章
更多揭开正则表达式的神秘面纱
代码之谜(二)- 语句与表达式(每个表达式都有一个值)
JAVA 正则表达式教程(超详细)三(续)
JAVA 正则表达式教程(超详细)二(续)
Hadoop实现共同出现的单词(Word co-occurrence)
【第五章】Spring表达式语言 之 5.1 概述 5.2 SpEL基础 ——跟我学spring3
【第五章】Spring表达式语言 之 5.3 SpEL语法 ——跟我学spring3
【第五章】Spring表达式语言 之 5.4在Bean定义中使用EL—跟我学spring3
最新问答
更多获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
如何通过引用返回对象?(How is returning an object by reference possible?)
矩阵如何存储在内存中?(How are matrices stored in memory?)
每个请求的Java新会话?(Java New Session For Each Request?)
css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
xcode语法颜色编码解释?(xcode syntax color coding explained?)
在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
Copyright ©2023 peixunduo.com All Rights Reserved.粤ICP备14003112号
本站部分内容来源于互联网,仅供学习和参考使用,请莫用于商业用途。如有侵犯你的版权,请联系我们(neng862121861#163.com),本站将尽快处理。谢谢合作!