- This topic has 0 replies, 1 voice, and was last updated 5 years, 3 months ago by Joseph.
-
AuthorPosts
-
January 5, 2019 at 11:39 am #108714
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 SubSub 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.You need to login in order to like this post: click here
-
AuthorPosts
Forums are currently locked.