:sign0085:
Can help me to translate this simple program write in qbasic ,to basic4ppc to work in smartphone ?
There is a big speak of smarthone compatibility of version 5.80 of basic4ppc ,but I have seen
any simple example of source code . I am in difficulty because as we read in main help of basic4ppc
"The following controls are not supported for smartphone :
· Button· Calendar· ImageButton· ListBox· NumUpDown· SaveDialog
The following external controls (available in the ControlsEx library) are not supported:
· ContextMenu· TabControl· ToolBar· TrackBar
· TreeView with checkboxes is not supported (TreeView without checkboxes is supported)."
The very simple program is:
--------------------------------------------------------
DIM A(2,4) // IT CREATES AN ARRAY 2X4
DIM B(2,4) // THE SAME FOR B()
DATA 1,2,3,4 // MY DATA IS DIFFERENT ,IS AN EXAMPLE!
DATA 5,6,7,8 // MY DATA
FOR K = 1 TO 2 // FILL THE ARRAY "A" WITH 1,2,3,4
// 5,6,7,8
FOR J = 1 TO 4
READ A(K,J)
NEXT J
NEXT K
CONT = 0 // THE COUNTER = 0
START:
CONT = CONT +1 // IT INCREASE THE COUNTER
IF CONT = 5 THEN END // WHEN THE ARRAY IS FULL THE PROGRAM STOP
INPUT NUMBER // THE USER INSERT A RANDOM NUMBER
FOR K = 1 TO 2
B(K,CONT) = NUMBER XOR NOT A(K,CONT) XOR NOT 1
/* BOLEAN XNOR OF THE RANDOM NUMBER WITH THE FIRST COLUMN OF ARRAY "A" ; "XOR NOT 1 " IS INSERT TO CORRECT THE RESULT ;
THE RESULT GO TO THE CORRESPONDENT LOCATION OF ARRAY "B" */
NEXT K
CLS
PRINT B(1, CONT) ; B(2,CONT)
//DISPLAY THE RESULT COLUMN OF "B"
GOTO START
/*HERE I WANT A "GOTO START" INSTEAD OF FOR-NEXT LOOP BECAUSE IN THE REAL PROGRAMM THERE IS MORE CODE THAT I HAVE NOT INSERT HERE IN THIS EXAMPLE , ... START AGAIN TO INSERT A NEW RANDOM NUMBER BY THE USER ,UNTIL THE PROGRAM STOP */
--------------------------------------------------------------
I ALSO CAN PAY IF SOMEONE CAN HELP ME
excuse me for the english , I am italian !
Can help me to translate this simple program write in qbasic ,to basic4ppc to work in smartphone ?
There is a big speak of smarthone compatibility of version 5.80 of basic4ppc ,but I have seen
any simple example of source code . I am in difficulty because as we read in main help of basic4ppc
"The following controls are not supported for smartphone :
· Button· Calendar· ImageButton· ListBox· NumUpDown· SaveDialog
The following external controls (available in the ControlsEx library) are not supported:
· ContextMenu· TabControl· ToolBar· TrackBar
· TreeView with checkboxes is not supported (TreeView without checkboxes is supported)."
The very simple program is:
--------------------------------------------------------
DIM A(2,4) // IT CREATES AN ARRAY 2X4
DIM B(2,4) // THE SAME FOR B()
DATA 1,2,3,4 // MY DATA IS DIFFERENT ,IS AN EXAMPLE!
DATA 5,6,7,8 // MY DATA
FOR K = 1 TO 2 // FILL THE ARRAY "A" WITH 1,2,3,4
// 5,6,7,8
FOR J = 1 TO 4
READ A(K,J)
NEXT J
NEXT K
CONT = 0 // THE COUNTER = 0
START:
CONT = CONT +1 // IT INCREASE THE COUNTER
IF CONT = 5 THEN END // WHEN THE ARRAY IS FULL THE PROGRAM STOP
INPUT NUMBER // THE USER INSERT A RANDOM NUMBER
FOR K = 1 TO 2
B(K,CONT) = NUMBER XOR NOT A(K,CONT) XOR NOT 1
/* BOLEAN XNOR OF THE RANDOM NUMBER WITH THE FIRST COLUMN OF ARRAY "A" ; "XOR NOT 1 " IS INSERT TO CORRECT THE RESULT ;
THE RESULT GO TO THE CORRESPONDENT LOCATION OF ARRAY "B" */
NEXT K
CLS
PRINT B(1, CONT) ; B(2,CONT)
//DISPLAY THE RESULT COLUMN OF "B"
GOTO START
/*HERE I WANT A "GOTO START" INSTEAD OF FOR-NEXT LOOP BECAUSE IN THE REAL PROGRAMM THERE IS MORE CODE THAT I HAVE NOT INSERT HERE IN THIS EXAMPLE , ... START AGAIN TO INSERT A NEW RANDOM NUMBER BY THE USER ,UNTIL THE PROGRAM STOP */
--------------------------------------------------------------
I ALSO CAN PAY IF SOMEONE CAN HELP ME
excuse me for the english , I am italian !