Category: Fetch
-
Programming in Alpha Software Black Jack 04 Game Mechanics
—
by
in Append, batch_Begin, Blackjack, Changing Object Property Values, Declaring Variables on a Form, Design Document, Desktop Application, External_Record_Content_Get, Fetch, fetch_Next, Fetch_Prev, Form as Dialog, Form Design, Form Load Method, Games, Having Fun With Graphics, How To, Object Explorer, Object Method, On Event, On Push, Operations, Table Open Method, Tables and Sets, Using Eval function, Using goto label, Using If Else if, Using Images on Forms, Writing Array’s, XBasic Tips and TricksProgramming our Black Jack Game will be a success only if the game mechanics make sense and work similar to the real world. What I mean by this is users know the Black Jack game and are familiar with how it works, so our game must work the same or users will lose interest and…
-
Programming in Alpha Software: Black Jack 03
—
by
in batch_Begin, Blackjack, Changing Object Property Values, Declaring Variables on a Form, Design Document, Desktop Application, External_Record_Content_Get, Fetch, fetch_Next, Fetch_Prev, Form Design, Form Load Method, Games, Having Fun With Graphics, How To, Object Explorer, Object Method, On Event, On Push, Table Open Method, Tables and Sets, Using goto label, Using If Else if, Using Images on Forms, XBasic Tips and TricksWelcome back. In this session we are looking at the deal, but before we do; lets look at our design document to see what we have accomplished so far and what still needs to be done. As you can see, we are moving right along and should be done in a few more sessions. Now…
-
Programming in Alpha Software Black Jack 02
—
by
in batch_Begin, Blackjack, Changing Object Property Values, Declaring Variables on a Form, Design Document, Desktop Application, External_Record_Content_Get, Fetch, fetch_Next, Form Design, Form Load Method, Games, Hot Spots, How To, List Objects, Object Explorer, Object Method, ON Change, On Event, On Push, Operations, Randomize Numbers, Script Genie, Table Open Method, Tables and Sets, Update, Using goto label, Using Images on Forms, Writing Array’s, XBasic Tips and Tricks, xDialogWhen we left off at the end of session 01 I said we would look at New Game Control Controlling the Number of Players Shuffling the Deck. If the lesson does not get too long I will review the animation of dealing a card as well. I created this short video to show where we…
-
Programming in Alpha Software: Blackjack Game 01
—
by
in Blackjack, Declaring Variables on a Form, Design Document, Desktop Application, External_Record_Content_Get, Fetch, Form as Dialog, Form Design, Form Load Method, Games, Handling Errors, Having Fun With Graphics, Hot Spots, How To, List Object, List Objects, Object Method, On Event, On Push, Table Open Method, Tables and Sets, Using goto label, Using If Else if, Writing Array’s, XBasic Tips and Tricks, xDialogHello everyone We completed our Magic Cube programming lesson an I must say my granddaughter was over the other day and she played with it on my SurfacePro tablet and matched the moves on her real cube for hours so I guess that means it was a success. Now lets move on to something more…
-
Programming in Alpha Software Magic Cube Lesson 4
—
by
in Append, batch_Begin, Declaring Variables on a Form, Desktop Application, External_Record_Content_Get, Fetch, fetch_Next, Fetch_Prev, Form as Dialog, Form Design, Form Load Method, Games, Having Fun With Graphics, Hot Spots, How To, List Object, List Objects, Object Explorer, Object Method, On Arrive, ON Change, On Event, On Fetch, On Push, Table Open Method, Tables and Sets, TC Magic Cube, Using Images on Forms, XBasic Tips and TricksAt the end of our last session we were looking at the code for the onPush event of our ‘Open Move Tracker’’ button. form.load(“TC_MC_MoveTracker”,”dialog”,””,”right”,”middle”) TC_MC_MoveTracker.Activate() TC_MC_MoveTracker.Show() TC_MC_MoveTracker.close() if CName <> “” then movestate = “Return” dim record_count as N t = table.open(“tcrubixmoves”) t.fetch_first() record_count = t.records_get() t.fetch_last() for…
-
Programming in Alpha Software Magic Cube Lesson 3
—
by
in Append, batch_Begin, Changing Object Property Values, Declaring Variables on a Form, Design Document, Desktop Application, External_Record_Content_Get, Fetch, fetch_Next, Form as Dialog, Form Design, Form Load Method, Games, Handling Errors, Having Fun With Graphics, Hot Spots, How To, List Object, List Objects, Object Explorer, Object Method, ON Change, On Event, On Init, On Push, Operations, Pong, Table Open Method, tablecount, Tables and Sets, TC Magic Cube, Using Images on Forms, XBasic Tips and TricksThe primary focus for today’s session is how to animate the cube moves. If you saw my lesson on Having Fun with Graphics: Pong you know we can move objects on the screen by changing their position property value. We are not going to do that here. Instead we are changing the color value of…
-
Programming in Alpha Software: Magic Cube Lesson 2
—
by
in Changing Object Property Values, Declaring Variables on a Form, Desktop Application, External_Record_Content_Get, Fetch, fetch_Next, Form Design, Form Load Method, Games, Having Fun With Graphics, Hot Spots, How To, List Object, List Objects, Object Explorer, Object Method, On Arrive, On Event, On Push, Table Open Method, Tables and Sets, TC Magic Cube, Using Eval function, Using goto label, Using If Else if, Using Images on Forms, Writing Array’s, XBasic Tips and TricksWe left off our last session looking at the code for our onInit event of our form. The code was 164 lines long and somewhat redundant. To fix this we are going to use two functions in Alpha Software Array Eval If you look back at the previous code insert, You will see the naming…
-
PC Desktop: Embedding a progress bar in a form
—
by
in Changing Object Property Values, Conditional Object, Declaring Variables on a Form, Desktop Application, Fetch, fetch_Next, Form Design, Form Load Method, Handling Errors, Having Fun With Graphics, How To, List Object, List Objects, Object Explorer, Object Method, On Event, On Push, Using If Else ifHello Everyone I was looking at the Alpha Message Board today and saw a closed thread where the user was looking for help creating an embedded progress bar on their application form. Several people replied but none actually answered the query and now the thread is closed so I thought I would do a quick…
-
Programming in Alpha Software Lesson 5: Sudoku Puzzle Solver Program using xBasic to build Bubble Help
We left off with the code for locking cells and in this lesson we will look at the next four buttons on our form: Fill in Block Values Swap Cells Clear Selection Que Lock UnLock Cell Before we do , watch this short video to see each of them in action. As I said, it…
-
Programming in Alpha Software Lesson 4: Sudoku Puzzle Solver Program
We left off in the middle of a lengthy script which is run when a new game is started. You can review that script here Programming in Alpha Software Lesson 3. After the randomization runs we then save the solution to our currentpuzzlesolution table. My intent is to use the solution as a move checker…