microsoft visual basic code example

Example 1: visual studio

if (IDE == "Microsoft Visual Studio"){
  cout << "Get visual studio code\n";
  cout << "more flexible, and still by microsoft\n";
}

Example 2: visual basic msdos

' For VBA / VB / Visual Basic only

'EXAMPLE
  sCommandToRun = "copy   ""InitialName.xls""   ""NewName.txt""   "
  'NOTE: The "" above is the equivalent of " in the command prompt
  Call Shell("cmd.exe /S /C" & sCommandToRun, vbHide)

'SYNTAX
'	<your-variable-name> = "<MSDos-command-you-want-to-run>"
'	Call Shell("cmd.exe /S /C" & <your-variable-name>, vbHide)

Tags:

Cpp Example