Datagrid动态显示

Keep Open and Learning
Post Reply
jiataifeng
Posts: 136
Joined: 30 Apr 2009 06:31

Datagrid动态显示

Post by jiataifeng » 16 Nov 2018 23:03

Code: Select all

Par1:INT;
aCardGame : ARRAY [1..13,1..4] OF INT;
lastValue:INT;
i:INT;
j:INT;

Par1:= Par1 +1;

IF i<14 THEN 
	IF j> 5 THEN
		i:=i+1;
		j:=0;
	END_IF
ELSE
	i:=1;
END_IF
//IF switch THEN
j:=j+1;
	//FOR i:=1 TO 13 BY 1 DO
		//FOR j:=1 TO 4 BY 1 DO
			IF lastValue <>Par1 THEN
				aCardGame[i,j]:=Par1;
			END_IF
			lastValue:=Par1;
		//END_FOR
	//END_FOR
//END_IF

Code: Select all

var params = [];
        
        for (var i = 0; i < par1.length; i++) {
            params.push({ "Test1": +par1[i][0], "Test2": +par1[i][1], "Test3": +par1[i][2], "Test4": +par1[i][3] });
        }
        var json = JSON.stringify(params);
        return json;

Post Reply