howvur.blogg.se

Syncbackpro v8
Syncbackpro v8











For integer division (\) you must instead use normal division (/) and cast the result with Int():.If SBProfile.GetCheckbox(3) Then ' THIS WILL CAUSE AN ERROR Don't put comments after IF statements on the same line:.You must end with LOOP WHILE 1=1, for example. Simply delete the underscores at the end of lines. You cannot combine lines using an underscore (_) on the end of the line.Variables do not need to be declared first but you must declare (or initialize) a variable if it is first set in the parameters on a call to a function or sub-routine.

syncbackpro v8 syncbackpro v8

When calling functions or sub-routines that have no parameters, don't use empty brackets, e.g.:.Sub RunAfterConfig(constvar1, var variablevar2) - This is correct Sub RunAfterConfig(constvar1, variablevar2) - This is wrong When declaring functions or sub-routines, and there are variable arguments (non-constant), then prefix them with var, e.g.When declaring functions or sub-routines, and there are no arguments, then don't use brackets, e.g.You must use brackets with calls to sub-routines that have arguments (just as you must already do with functions).If not SBLocation.AddDirEx2(SubFol.Name, SubFol.Attributes, SubFol.DateLastModified, SubFol.DateCreated, '') then While FoldersEnum.ForEach(SubFol) do begin Instead you must use TEnumVariant.Create, e.g.:įoldersEnum:=TEnumVariant.Create(Folder.SubFolders) In the header of the script change SBLang=VBScript to SBLang=Basic.Change the script filename extension from.The example scripts that are distributed with SyncBackPro have already been converted to the new Basic scripting language.īelow are some tips on how to convert your VBScript scripts to the new Basic language scripts:

syncbackpro v8

Therefore if you want your Basic scripts to work in both the 32-bit and 64-bit versions of SyncBackPro then they need to be converted to the new Basic scripting language (or the new Pascal scripting language). Although 32-bit SyncBackPro still supports the old VBScript scripting, the 64-bit version of SyncBackPro cannot use VBScript scripting due to limitations in the 64-bit versions of Windows. Although the new Basic scripting language is very similar to VBScript, it is not identical.

syncbackpro v8

SyncBackPro V8 introduced a new scripting engine that supports both Basic and Pascal.













Syncbackpro v8