Powerbasic Museum 2020-B

IT-Consultant: Charles Pegge => OxygenBasic => Topic started by: Chris Chancellor on December 27, 2018, 03:59:56 PM

Title: Equivalent of PB ENUM Equates
Post by: Chris Chancellor on December 27, 2018, 03:59:56 PM
Hello Charles

what is the equivalent of PB ENUM Equates  for example the statement below


ENUM Equates SINGULAR
   IDC_ListView     = 500
   IDC_Statusbar
   IDC_TextBox
   IDC_ComboBox
   ButtonCBExit   
   ButtonCapExit       
END ENUM   



will define these identifiers in O2 as


%   IDC_ListView     = 500
%   IDC_Statusbar  = 501
%   IDC_TextBox     = 502
%   IDC_ComboBox = 503
%   ButtonCBExit   = 504
%   ButtonCapExit  = 505     



which is a more less a shortform method especially when we have lot's of equates to define


Title: Re: Equivalent of PB ENUM Equates
Post by: Chris Chancellor on December 30, 2018, 05:22:11 PM
Hello Charles

any ideas to resolve this issue maybe by using a macro to automate the ENUM command?