Menu ▾ ▴

#137 VBA converter: Collection/Dictionary, Rnd(), UserForm control .Text and calls to module Subs from the form

open
nobody
2026-11-01
2026-11-01
Anonymous
No

Originally created by: M4R4G0N

Reported by the user while converting a real .xlsm (LOFA_POSICIONAL_P1_P15). Items listed as not converted:

  • New Collection, .Add, .Count, col(i) (Collection) — currently Tipo::Impossivel in gerar/contexto.rs (Dictionary too). Map to a JS array (1-based) / Map.
  • Rnd() with empty parentheses: "função Rnd sem equivalente" although rnd maps to Math.random() in gerar/funcoes.rs.
  • In the UserForm code: txtQtdJogos.Text → "objeto txtQtdJogos desconhecido" (the control should resolve to sheet.field("txtQtdJogos").value).
  • Call ProcessarDesdobramento(QtdJogos) from the form → "função sem equivalente": a Sub of a standard module called from the form.
  • UserForm_Click event has no equivalent (warning only).

Ask the user for the .xlsm to use as test fixture.

Discussion


Log in to post a comment.