
The alternative is to have a timer, in which you check for the Keyboard.AsyncShiftKey not being hold down anymore to start the multi-column sort (the Shift key is not captured by KeyDown and KeyUp). Shift Click 1 … Click n-1 Release Shift Click n The user presses “Shift” and holds it, then he clicks on the the column headers and before he clicks on the last column he has first to release the “Shift” key. Return False // Let Xojo sort autiomatically ReDim mColumns(-1) // Empty the column array for the next sort MColumns.Append(column) // Collect the last column to sort by If mColumns.Ubound > -1 Then // This is a multi-column sort MColumns.Append(column) // Collect the columns to sort by GlobalsĬhange kGameSeconds, kGamesToPlay for testing purposes.This is a very simplified version of what I do:Įvent HeaderPressed(column As Integer) As Boolean MillisecondsĪ global instance of milliseconds (based off of Microseconds) that you can use for timing. Or you can use (if using Xojo 2015 Release 2). Other userful methods/properties RandĪ global instance of Random that you can use to generate random values.


Return one of the RotationTypes (Left, Right, None) to rotate the ship.
Xojo array number of values full#
You must use your full nameĬalled when your ship is hit by a missile. Return a String containing your Full Name. This is only called if there is not alreadyĪ missile that has been fired. Do not attempt to access information outside of what you are provided below.No cheating/hacking using things such as introspection, tweaking thread priorities or anything else that is obviously outside the intent of the game.If there is a tie at the end of the championship round, 10 seconds are added to the clock and the battle continues in tie-breaker mode until there is a winner. This could mean that the championship battle has more than four players. If there is a tie for 4th place then all the 4th place ties are also included in the battle. The top 4 scores after all the battles are finished play in a championship battle. Your score is #ShipsYouHit - #TimesYouGetHit. The number of opponents you hit and the number of times you get hit are counted. You also get two teleports per game.Įveryone will play about 4 to 6 battles (depending on number of participants) with 4 players per battle.

Xojo array number of values code#
Then In the last code I done this: my2dArray(i,j) listbox.Cell(i,j) But this was a Listbox. Then to redimension to the requested number of rows and columns I do this: ReDim MatrizCFDI(-1, 3) Pls. If you fly into a wormhole, your ship is teleported to random position. I have a multidimensional Array, I want to have Four columns and Rows as many as I want. Your ship always moves forward and you control it by changing its direction and firing. The contest will be held on Jat 1pm ET as a live webinar. Use the subject line "Xojo Wars 2015 Community Contest". Used to specify the dimension for which you want the last row index.

dimension Integer: Relevant only for multi-dimensional arrays. array Array of any data type The array whose last element number you want. If the passed array has no elements, result is set to -1. Project should be emailed to by 8am ET on July 27, 2015. The index of the last element in the array specified.
