SELECT myNum, SUM(myValue) FROM anotherTable GROUP BY myNum WHERE myNUM <= 100; --------------------------- return [#CurrentVersion, #CurrentList]; --------------------------- if (typeof(conPeek(packedClass,1)) != Types::INTEGER) --------------------------- new MenuFunction(menuItemDisplayStr(SalesTable), MenuItemType::Display).run(args); --------------------------- Query querySalesTable; querySalesTable.dataSourceTable(tableNum(SalesTable)).addRange(fieldNum(SalesTable, InterCompanyOrder)).value(queryValue(NoYes::Yes)); --------------------------- Common common; ; this.handleDeleteActions(sysDictTable); common = sysDictTable.makeRecord();
common.skipDatabaseLog(true); common.skipDataMethods(true); common.skipDeleteActions(true); delete_from common; ---------------------------- Dictionary dictionary = new Dictionary(); tableId = dictionary.tableNext(tableId); ---------------------------- tableNum(SalesTable): ---------------------------- MyTable myTable; RecordInsertList insertList = new RecordInsertList(myTable.TableId, True); int i; for ( i = 1; i <= 100; i++ ) { myTable.value = i; insertList.add(myTable); } insertList.insertDatabase(); } ----------------------------- int p2 = strFind(line,' ',p1,strLen(line)); return subStr(line,p1,p2-p1); ---------------------------------- if (o && (o.handle() == classIdGet(fr)) -------------------------------- return (dictFeatureKey.rights() != AccessType::NoAccess) ? true : false; ------------------------------- kmQuestion.answerInputType = KMQuestionAnswerInputType::CheckBox; kmQuestion.answerInputType = KMQuestionAnswerInputType::ComboBox; kmQuestion.answerInputType = KMQuestionAnswerInputType::RadioButton; kmQuestion.answerInputType = str2Int(kmQuestion.DEL_answerModeSelection); -------------------------------- select sum(correctAnswer) from KMVirtualNetworkAnswerLine group by kmVirtualNetworkAnswerTableId, kmQuestionResultGroupId -------------------------------- kmConnectionType.refFieldId = fieldNum(HRMCourseTable, description); -------------------------------- segment += ':' + date2str(_date,321,2,0,2,0,4)+ subStr(time2str(_time,1,1),1,2) + subStr(time2str(_time,1,1),4,2) + subStr(time2str(_time,1,1),7,2); -------------------------------- Dialog dialog = new Dialog("@SYS73363"); DialogField dlgClassTypeName = dialog.addField(typeId(className)); Editor editor -------------------------------- filename = WinAPI::getSaveFileName(0, ['Text','*.txt'], '', "@SYS56237", 'txt', defaultName ); if (filename) { io = new AsciiIo(filename, 'W'); io.write(EditorScripts::getSelectedText(e)); } --------------------------------- switch (version) { case(#CurrentVersion) : [version,#CurrentList,packedQuery] = packedClass; if (packedQuery) qr = new QueryRun(packedQuery); break; default : return false; } -------------------------------- select workCalendarDateLine index CalendarDateFromIdx where workCalendarDateLine.calendarId == calendarId && workCalendarDateLine.transDate == transDate --------------------------------- #define.dateFormat('DD/MM/YYYY hh:mm:ss') default: warning(strFmt("@SYS24561",classIdGet(gantt))); -------------------------------- AsciiIo logFile = new AsciiIo(#VTHeapLog, 'a'); ; logFile.write(this.prompt(' Unfreed object'), conPeek(data,2)); -------------------------------- select firstonly ledgerPeriod order by periodStart desc where ledgerPeriod.periodStart <= _transDate && ledgerPeriod.periodCode == _periodCode; --------------------------------- client server static boolean checkFailed(SysInfoLogStr txt, URL helpURL = '', SysInfoAction _sysInfoAction = null) { if (BMMainControl::inAction()) appl.BMaddInfo(Exception::Info,txt); else infolog.add(Exception::Warning, getprefix()+txt, helpURL, _sysInfoAction, false); return false; } ------------------------------------ switch(itemCode) { case TableGroupAll::Table : return item; case TableGroupAll::GroupId : return groupId; case TableGroupAll::All : return ''; } TableGroupAll::Table//是个枚DcdQbase enumQ?br />------------------------------------ void new(CurrencyCode _currencyCode) {; currencyCode = _currencyCode; exchRate = 0; exchrateSecondary = 0; exchRatesTriangulation = UnknownNoYes::Unknown; } //当徏立一个对象的时候会调用此方?br />------------------------------------
]]>关于ax中集合的学习http://www.aygfsteel.com/xmddl369/archive/2006/08/12/63144.html舞熙舞熙Sat, 12 Aug 2006 03:21:00 GMThttp://www.aygfsteel.com/xmddl369/archive/2006/08/12/63144.htmlhttp://www.aygfsteel.com/xmddl369/comments/63144.htmlhttp://www.aygfsteel.com/xmddl369/archive/2006/08/12/63144.html#Feedback0http://www.aygfsteel.com/xmddl369/comments/commentRss/63144.htmlhttp://www.aygfsteel.com/xmddl369/services/trackbacks/63144.html
Map ------------------ map iim = new map(types::integer, types::class); mapIterator it; // Add some elements into the list... iim.insert(1, new query()); iim.insert(2, new query()); iim.insert(4, new query()); // Create a list iterator it = new mapIterator (iim); print it.definitionString(); // prints “[int -> class] iterator?br />print it.toString(); // prints ?begin)[(1 -> Query: query object 38824e0)]?br />// Go on for as long as elements are found in the set... while (it.more()) { // fetch the next element print it.key(); // prints 4 2 1 print it.value().toString(); // print something like Query object 3881270 it.next(); } print it.toString(); // prints (end) pause; ----------------------------------- Set ------------------ set s1 = new set (types::integer); int theElement; setIterator it; // Add some elements... s1.add(3); s1.add(4); s1.add(13); s1.add(1); // Start a traversal of the elements in the set. it = new setIterator(s1); // The elements are fetched in the order: 1, 3, 4, 13 print it.toString(); // prints ?begin)[1]?br />while (it.more()) { // Fetch the next element theElement = it.value(); print theElement; it.next(); } pause; ----------------------------------- List ---------------------- list il = new list(types::integer); listIterator it; // Add some elements into the list... il.addStart(1); il.addStart(2); il.addStart(4);
// Create a list iterator it = new listIterator (il); print it.definitionString(); // prints “int list iterator?br /> print it.toString(); // prints ?begin)[4]?br />// Go on for as long as elements are found in the list... while (it.more()) { // fetch the next element print it.value(); // prints 4 2 1 it.next(); } print it.toString(); // prints (end) pause;
]]>X++学习(1)http://www.aygfsteel.com/xmddl369/archive/2006/08/06/62045.html舞熙舞熙Sun, 06 Aug 2006 03:58:00 GMThttp://www.aygfsteel.com/xmddl369/archive/2006/08/06/62045.htmlhttp://www.aygfsteel.com/xmddl369/comments/62045.htmlhttp://www.aygfsteel.com/xmddl369/archive/2006/08/06/62045.html#Feedback0http://www.aygfsteel.com/xmddl369/comments/commentRss/62045.htmlhttp://www.aygfsteel.com/xmddl369/services/trackbacks/62045.html
1、单行注?/ 多行注释 /**/ 2、数据类型:Q不区分大小写) Q?Q?u>基本数据cdQ?br /> boolean boolean b; boolean b1,b2; integer int i1,i2; int i3 = 100; int i4[]; real real r1,r2; real r3 = 3.1415; date date d1,d2; //A date variable, d3, is initialized to the 21st of October 1998 date d3 = 21\11\1998; timeofday string str a=”Hello?b=”World? print a+??b; enum Q?Q?u>复合数据cdQ?br /> array(s) real r[100]; // A dynamic array of dates, with only 10 elements in memory date d[,10]; // A fixed length array of NoYes, with 100 elements and 10 in memory NoYes e[100,10]; Container(s) container c = [7,3.14, ”Hello”]; int i; i = confind( c, “Hello?; //i has the value 3 classe(s) Access a1; //An Access-object is declared but NOT initialized Access a2, a3; //Two Access-objects are declared, but NOT initialized Access a4 = new Access(); table(s) Q?Q?u>扩展数据cdQ?span style="FONT-WEIGHT: bold">Extended data typesQ: where extendedtype is the name of the Extended Data Type in the Application Object Tree. Using the EBNF you can declare Extended Data Type variables like this (the examples use built-in extended data types): // A UserGroupID (integer) variable is declared and initialized to 1. UserGroupIDgroupID = 1; // An Amount (real) variable is declared Amount currency; 3、程序控制语句类gc++Q但是,变量的定义要攑֜开始用之前,如: do{ print b; b++; }while(b<10);
for(m=0;m<10;m++){//can not define int m=0 in this print m; } 4、开发环境概览:
]]>POWERSCRIPT学习(1)http://www.aygfsteel.com/xmddl369/archive/2006/08/05/61907.html舞熙舞熙Sat, 05 Aug 2006 01:53:00 GMThttp://www.aygfsteel.com/xmddl369/archive/2006/08/05/61907.htmlhttp://www.aygfsteel.com/xmddl369/comments/61907.htmlhttp://www.aygfsteel.com/xmddl369/archive/2006/08/05/61907.html#Feedback0http://www.aygfsteel.com/xmddl369/comments/commentRss/61907.htmlhttp://www.aygfsteel.com/xmddl369/services/trackbacks/61907.html
//数据cd的说?不区分大写 String name="xmddl" Integer i Real s //q里为单行注?br />Integer a[1 to 10] real i_s[4]={1,2,3,4} CONSTANT String j="HELLO"
real ii_s[2,4]={1,1,1,1,2,2,2,2} string s_s[2,3,4]
dec{2} fj dec jj,ii double d /* q里为多行注?br />fdsfsdfds */ time mytime date mydate=2006-07-07 datetime mydatetime char c='w' string hello="it~'s a dog"http://it's a dog
any my,you,he
blob bk boolean b long l int iss ResultSet rs resultsets rss //不区分大写 //q算W?br />/* 1、算术运符:*???、^ 2、逻辑q算W?NOT、AND、OR 3、关p运符:=?gt;=?gt;?lt;?lt;=?lt;> 4、连接运符:& */ jj+=jj+ii jj=jj/ii jj=jj*ii jj -=ii jj +=ii
//E序控制语句Q选择、@环、其他语?br />if jj>ii then //todo...... end if
if jj>ii then //todo... elseif jj=ii then //todo... end if