SaveValue and LoadValue methods with Script56 CDb1.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #108714
    Joseph
    Participant
      @tarrega1

      SaveValue and LoadValue method.

      Saving and loading Table HighScoreNames and score results with a tailored dimension

      Ref: Visual Pinball Help Manual (Chm)/commandReference

      LoadValue(string,string,VARIANT) – load a value for tablename,valuename,value
      SaveValue(string,string,VARIANT) – save a value for tablename,valuename,value

      ‘comment ### Visual Pinballs Load Save Constant for the Table Name and Dimensions(Dims)###

      Const cGameName =”Vp_TexasPoker”
      Dim Value, nvHighScoreName1, nvHighScore1

      ‘comment saving value nvHighScore1 to cGameName

      Sub Save_nvHighScore()
      SaveValue cGameName, “nvHighScore1”,nvHighScore1
      SaveValue cGameName, “nvHighScoreName1”,nvHighScoreName1
      End Sub

      Sub Load_nvHighScore()

      ‘comment ### Loading the saved nvHighScore1 numbers into Value ###

      Value=LoadValue(“Vp_TexasPoker”,”nvHighScore1″)

      ‘comment ### Loading value content into nvHighScore1 ###

      nvHighScore1=script56 CDb1=(Value)

      ‘comment### Loading Letters ###

      Value=LoadValue(“Vp_TexasPoker”,”nvHighScore1Name”)

      nvHighScore1Name=(Value)

      End Sub

      ‘Comment
      ‘ Table Hextech introduced the script56 CDb1=(Value) function some time ago, and all went well after its introduction.

      Script56 CDb1 Part description Quote “It is used to provide internationally aware conversions from any data type number to a double subtype. For example, different decimal and thousands separators are properly recognized, depending on the local setting of your system”.

      (If it works with CDb1 you must have the right system settings! Does that mean China has come into line with UK ? or, it could be one of those quirky moments).

      Definition double subtype Download Link :   VBSE/script56.chm at master · pmachapman/VBSE · GitHub

      ThankYou
      Hextech for introducing the script56 CDb1=(Value) code function and resolving the issue during that while back moment.

      ThankYou
      Visual Pinball for this very useful code function.

       

    Viewing 1 post (of 1 total)

    Forums are currently locked.

    ©2024 VPinBall.com

    Log in with your credentials

    Forgot your details?