当前位置:网站首页>VFP function to summarize all numeric columns of grid to cursor
VFP function to summarize all numeric columns of grid to cursor
2022-06-25 11:43:00 【VFP of Garfield】
The dream of Red Mansions says , All the servants , After the old , Those eyes will become dead fish eyes . When I was young, I didn't understand , Now in society , You can see this kind of look everywhere .
These bright eyes , But it can be seen everywhere in children's eyes , What happened to us ?
I helped a classmate last night , Preside over a meeting with them , There is one. 6 A little girl of eighteen , I have to take the initiative to go on stage , To sing , The name of the song is “ Xiao ”, I put her on the stage , I squatted down to interview him , Those are the eyes of two gods , There is aura . The song is also good .
When we grow up , Lost something ?
Have childlike curiosity , The only thing all successful people have in common
Keep curious about the world , The quality of being proactive , From ancient times to modern times , The only thing all successful people have in common .
Namely , Whatever problems they encounter , Always thinking : Among all the variables that affect the results , What variables can I change , Make the result better .
Instead of complaining about unchangeable external factors , accuse 、 Complain about others 、 Environmental Science 、 Times, etc .
《 There is only one thing in life 》 What I said : Three things in life , My own business , Other people's business , For heaven's sake . We should pay attention to our own affairs , Mind other people's business , No matter what happens to God .
therefore , If we can put the habit of being proactive , Use it in all aspects of life , In fact, there is no trouble in life .
There are two lines of business model
There are two lines between light and dark when we write programs , The vast majority of fox friends , Especially the fox friends who have taught themselves , Can only write clear lines , Can't write dark lines , Of course, join our community , I will talk about it in detail , Just a little bit .
And any of our business models , Both have light and dark lines .
This meeting , Party A calls Wansheng for a car , His business model clearly combines didi 、T3、 The advantages of China , But the dark line ? It is not appropriate to say here , In the future, cats will share in the community .
We need to understand a business model , Be sure to see the dark line behind from the open line , To see the essence of things .
Technology itself is never worth money , It is valuable to solve customers' needs , So don't stop at the high end of the language , But to see the essence , Rational demand , Talking about sales .
VFP Summary GRID A function that lists all values into a cursor
come from VFP MIX ALL Fox friends association community | Mr. Liang of Shiyi software shares
* Summarize all numeric columns to cursor
Local myGrd,lcFields,lcField,lnI,lcFlag
myGrd = Thisform.myGrd1
lcFlag = ''
lcFields = ''
For lnI=1 To myGrd.ColumnCount
lcField = Getwordnum(myGrd.Columns(lnI).ControlSource,2,[.])
If Inlist(Type('&lcField'),'N','I')
lcFields = lcFields + ',SUM(' + lcField + ') AS ' + lcField
Else
If Type('&lcField')='C' And lcFlag == ''
lcFields = lcFields + ',[- total -] AS ' + lcField
lcFlag = ' total OK'
Endif
Endif
If Getwordcount(lcFields,[,]) = 128 && most 128 Column
Exit
Endif
Endfor
lcFields = Substr(lcFields,2)
Select &lcFields From (myGrd.RecordSource) Into Cursor tmp_Total Readwrite
Thank you for listening to my thoughts
More thoughts http://www.sn58.cn
边栏推荐
- Spark runs wordcount (case 1)
- Vulnérabilité à l'injection SQL (contournement)
- 基于Minifilter框架的双缓冲透明加解密驱动 课程论文+项目源码
- 翌圣生物冲刺科创板:25%收入来自新冠产品销售 拟募资11亿
- Customize to prevent repeated submission of annotations (using redis)
- Use of JSP sessionscope domain
- 按钮多次点击造成结果
- JSON format processing
- 牛客网:主持人调度
- Ladder Side-Tuning:预训练模型的“过墙梯”
猜你喜欢

Deeply understand Flink SQL execution process based on flink1.12

西山科技冲刺科创板:拟募资6.6亿 郭毅军夫妇有60%表决权

Idea local launch Flink task

TCP如何处理三次握手和四次挥手期间的异常

牛客网:旋转数组

Spark history server and event log details

云原生数据湖以存储、计算、数据管理等能力通过信通院评测认证

How TCP handles exceptions during three handshakes and four waves

Spark history server performance improvement (I) -- Application List

Idea uses the fast request interface for debugging
随机推荐
.Net Core 中使用工厂模式
Specific meanings of node and edge in Flink graph
Source code analysis of AQS & reentrantlock
Spark history server and event log details
Capacity expansion mechanism of Dict Of redis (rehash)
杭州/北京内推 | 阿里达摩院招聘视觉生成方向学术实习生(人才计划)
Shichuang energy rushes to the scientific innovation board: it plans to raise 1.1 billion yuan, with an annual revenue of 700million yuan and a 36% decrease in net profit
SQL注入漏洞(类型篇)
Niuke.com: host scheduling
What is the development history, specific uses and structure of the chip
子类A继承父类B, A a = new A(); 则父类B构造函数、父类B静态代码块、父类B非静态代码块、子类A构造函数、子类A静态代码块、子类A非静态代码块 执行的先后顺序是?
Big Endian 和 Little Endian
Comparator (for arrays.sort)
Redis6笔记02 配置文件,发布和订阅,新数据类型,Jedis操作
relu与sigmod的比较
剑指 Offer II 091. 粉刷房子 : 状态机 DP 运用题
Design and implementation of university laboratory goods management information system based on SSH
揭秘GaussDB(for Redis):全面对比Codis
SystemVerilog (XIII) - enumerate data types
4 life distributions