04-01-2024, 04:41 PM
Hi,
I've been tinkering a bit, so if you can update SB-Prime using Advanced=>Update option, then go to Tools on the Ribbon, and open the new Aliases tool.
The aliases you set up are actually stored in the application config file in %AppData%. It is best not to touch the config file (any syntax error could prevent SB-Prime from starting) and loose all settings. The aliases however can be exported to a file (see below).
On the aliases too you can set an alias for any object/method/property/event .
The validation requires that the Default name is an object/method/property/event name and the Alias is not, but is at lease 2 European characters.
You can also Import or Export the alias mappings to a file (tab, comma or space should deleminate each pair, with a new line for each pair). So you could set up aliases externally and import them, or share your aliases file.
The Enable aliases tickbox can be used to toggle their use. Best to save before and reload after any files after changing aliases or you could get in a mess!
Have a little play to get the hang of what it is doing with test files, the *.sb file will alway use standard SB names (you can check this using Notepan for example), the aliases are only visible in the interface.
If you wanted to save the source with the aliases (it would of course be incompatible with SB compiler), you can copy/paste from the SB-Prime editor. This also means you could write code in another editor using your aliases as I know some users do, then copy/paste it into SB-Prime and then save it to a file to convert to default SB.
Good Luck
I've been tinkering a bit, so if you can update SB-Prime using Advanced=>Update option, then go to Tools on the Ribbon, and open the new Aliases tool.
The aliases you set up are actually stored in the application config file in %AppData%. It is best not to touch the config file (any syntax error could prevent SB-Prime from starting) and loose all settings. The aliases however can be exported to a file (see below).
On the aliases too you can set an alias for any object/method/property/event .
The validation requires that the Default name is an object/method/property/event name and the Alias is not, but is at lease 2 European characters.
You can also Import or Export the alias mappings to a file (tab, comma or space should deleminate each pair, with a new line for each pair). So you could set up aliases externally and import them, or share your aliases file.
The Enable aliases tickbox can be used to toggle their use. Best to save before and reload after any files after changing aliases or you could get in a mess!
Have a little play to get the hang of what it is doing with test files, the *.sb file will alway use standard SB names (you can check this using Notepan for example), the aliases are only visible in the interface.
If you wanted to save the source with the aliases (it would of course be incompatible with SB compiler), you can copy/paste from the SB-Prime editor. This also means you could write code in another editor using your aliases as I know some users do, then copy/paste it into SB-Prime and then save it to a file to convert to default SB.
Good Luck