# Revision history [back]

### Variable name Vs Value variable

Hello, I have 3 variables: var1 = 10; var2 = 20; var3 = 30

I would like to print on screen the variable with for cycle

sub prova

dim var1# dim var2# dim var3#

 var1 = 10
var2 = 20
var3 = 30
for i = 1 to 3

print "var" & i

next


end sub

But in this way obtain the of variable, not the value

Can you help me?

Thank you

 2 None Lupp 12400 ●34 ●94 ●175

### Variable name Vs Value variable

Hello, I have 3 variables: var1 = 10; var2 = 20; var3 = 30

I would like to print on screen the variable with for cycle

sub prova prova
dim var1#
dim var2#
dim var3#var3#
var1 = 10
var2 = 20
var3 = 30
for i = 1 to 3
print "var" & i
next
end sub
end sub But in this way obtain the of variable, not the value Can you help me? Thank you 


 3 None updated 2018-07-12 09:17:03 +0100 Variable name Vs Value variable Hello, I have 3 variables: var1 = 10; var2 = 20; var3 = 30 I would like to print on screen the variable with for cycle sub prova dim var1# dim var2# dim var3# var1 = 10 var2 = 20 var3 = 30 for i = 1 to 3 print "var" & i next end sub But in this way obtain the of variable, not the value Can you help me? Thank you 4 None updated 2018-07-12 09:50:10 +0100 Lupp 12400 ●34 ●94 ●175 Variable name Vs Value variable Hello, I have 3 variables: var1 = 10; var2 = 20; var3 = 30 I would like to print on screen the variable with for cycle sub prova dim var1# dim var2# dim var3# var1 = 10 var2 = 20 var3 = 30 for i = 1 to 3 print "var" & i next end sub But in this way obtain the of variable, not the value Can you help me? Thank you 5 retagged updated 2018-07-12 14:48:07 +0100 Jim K 2805 ●5 ●22 ●44 Variable name Vs Value variable Hello, I have 3 variables: var1 = 10; var2 = 20; var3 = 30 I would like to print on screen the variable with for cycle sub prova dim var1# dim var2# dim var3# var1 = 10 var2 = 20 var3 = 30 for i = 1 to 3 print "var" & i next end sub But in this way obtain the of variable, not the value Can you help me? Thank you 


 Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license. ⬆ to top impressum (legal info) | about | faq | help | privacy policy | give feedback Powered by Askbot version 0.9.3 var _paq = _paq || []; _paq.push(["disableCookies"]); _paq.push(["trackPageView"]); _paq.push(["enableLinkTracking"]); (function() { var u=(("https:" == document.location.protocol) ? "https" : "http") + "://piwik.documentfoundation.org/"; _paq.push(["setTrackerUrl", u+"piwik.php"]); _paq.push(["setSiteId", "55"]); var d=document, g=d.createElement("script"), s=d.getElementsByTagName("script")[0]; g.type="text/javascript"; g.defer=true; g.async=true; g.src=u+"piwik.js"; s.parentNode.insertBefore(g,s); })(); Please note: AskLibO requires javascript to work properly, please enable javascript in your browser, here is how //IE fix to hide the red margin var noscript = document.getElementsByTagName('noscript')[0]; noscript.style.padding = '0px'; noscript.style.backgroundColor = 'transparent'; askbot['urls']['mark_read_message'] = '/en/s/messages/markread/'; askbot['urls']['get_tags_by_wildcard'] = '/en/s/get-tags-by-wildcard/'; askbot['urls']['get_tag_list'] = '/en/s/get-tag-list/'; askbot['urls']['follow_user'] = '/followit/follow/user/{{userId}}/'; askbot['urls']['unfollow_user'] = '/followit/unfollow/user/{{userId}}/'; askbot['urls']['user_signin'] = '/en/account/signin/'; askbot['urls']['getEditor'] = '/en/s/get-editor/'; askbot['urls']['translateUrl'] = '/en/s/translate-url/'; askbot['urls']['apiGetQuestions'] = '/en/s/api/get_questions/'; askbot['urls']['ask'] = '/en/questions/ask/'; askbot['urls']['questions'] = '/en/questions/'; askbot['settings']['groupsEnabled'] = false; askbot['settings']['static_url'] = '/m/'; askbot['settings']['minSearchWordLength'] = 4; askbot['settings']['mathjaxEnabled'] = false; askbot['settings']['sharingSuffixText'] = '#Ask_LIbreOffice'; askbot['settings']['errorPlacement'] = 'after-label'; askbot['data']['maxCommentLength'] = 1000; askbot['settings']['editorType'] = 'markdown'; askbot['settings']['commentsEditorType'] = 'rich\u002Dtext'; askbot['messages']['askYourQuestion'] = 'Ask Your Question'; askbot['messages']['acceptOwnAnswer'] = 'accept or unaccept your own answer'; askbot['messages']['followQuestions'] = 'follow questions'; askbot['settings']['allowedUploadFileTypes'] = [ "jpg", "jpeg", "gif", "bmp", "png", "tiff", "odt", "ods", "odp", "odg", "odc", "odf", "odi", "odm", "ott", "ots", "otp", "otg", "odb", "doc", "docx", "xls", "xlsx", "ppt", "pptx" ]; askbot['data']['haveFlashNotifications'] = true; askbot['data']['activeTab'] = 'questions'; askbot['settings']['csrfCookieName'] = 'ask.libreoffice.org_en_csrf'; askbot['data']['searchUrl'] = ''; /*<![CDATA[*/ $('.mceStatusbar').remove();//a hack to remove the tinyMCE status bar$(document).ready(function(){ // focus input on the search bar endcomment var activeTab = askbot['data']['activeTab']; if (inArray(activeTab, ['users', 'questions', 'tags', 'badges'])) { var searchInput = $('#keywords'); } else if (activeTab === 'ask') { var searchInput =$('#id_title'); } else { var searchInput = undefined; animateHashes(); } var wasScrolled = $('#scroll-mem').val(); if (searchInput && !wasScrolled) { searchInput.focus(); putCursorAtEnd(searchInput); } var haveFullTextSearchTab = inArray(activeTab, ['questions', 'badges', 'ask']); var haveUserProfilePage =$('body').hasClass('user-profile-page'); if ((haveUserProfilePage || haveFullTextSearchTab) && searchInput && searchInput.length) { var search = new FullTextSearch(); askbot['controllers'] = askbot['controllers'] || {}; askbot['controllers']['fullTextSearch'] = search; search.setSearchUrl(askbot['data']['searchUrl']); if (activeTab === 'ask') { search.setAskButtonEnabled(false); } search.decorate(searchInput); } else if (activeTab === 'tags') { var search = new TagSearch(); search.decorate(searchInput); } if (askbot['data']['userIsAdminOrMod']) { $('body').addClass('admin'); } if (askbot['settings']['groupsEnabled']) { askbot['urls']['add_group'] = "/en/s/add-group/"; var group_dropdown = new GroupDropdown();$('.groups-dropdown').append(group_dropdown.getElement()); } var userRep = $('#userToolsNav .reputation'); if (userRep.length) { var showPermsTrigger = new ShowPermsTrigger(); showPermsTrigger.decorate(userRep); } }); if (askbot['data']['haveFlashNotifications']) {$('#validate_email_alert').click(function(){notify.close(true)}) notify.show(); } var langNav = $('.lang-nav'); if (langNav.length) { var nav = new LangNav(); nav.decorate(langNav); } /*]]>*/$(document).ready(function() { var toTop=$("#toTop"); if ($(window).scrollTop() == 0) { toTop.fadeOut(1000); } $(window).scroll(function() { if ($(this).scrollTop() != 0) { toTop.fadeIn(); } else { toTop.fadeOut(); } }); toTop.click(function(event) { event.preventDefault(); $("html,body").animate({scrollTop: 0},800); }); }); //todo - take this out into .js file$(document).ready(function(){ $('div.revision div[id^=rev-header-]').bind('click', function(){ var revId = this.id.substr(11); toggleRev(revId); }); lanai.highlightSyntax(); }); function toggleRev(id) { var arrow =$("#rev-arrow-" + id); var visible = arrow.attr("src").indexOf("hide") > -1; if (visible) { var image_path = '/m/default/media/images/expander-arrow-show.gif?v=20'; } else { var image_path = '/m/default/media/images/expander-arrow-hide.gif?v=20'; } image_path = image_path + "?v=20"; arrow.attr("src", image_path); \$("#rev-body-" + id).slideToggle("fast"); } for (url_name in askbot['urls']){ askbot['urls'][url_name] = cleanUrl(askbot['urls'][url_name]); }