Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

How to insert the generated text into code ?

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-06-2008, 04:48 AM
Senior Member
 
Join Date: Mar 2008
Location: Dhaka, Bangladesh
Posts: 164
Default How to insert the generated text into code ?

Hi,

I used some variables to hold values like:

uy=”panel2”
vy="lbl"

then:

tt=uy&vy

and:

uu=tt&"."&"visible"&"="&"False"

Msgbox(uu); shows “panel2lbl.visible=False”, how is it possible to use “panel2lbl.visible=False” in code to make the visibility of “panel2lbl” false ?

I tried in code as: tt&"."&"visible"&"="&"False", but it gives Syntax Error.

Regards,
Reply With Quote
  #2 (permalink)  
Old 10-06-2008, 05:01 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,726
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

You can use:
Code:
Control(tt).Visible = False
See this tutorial: http://www.basic4ppc.com/forum/tutor...ipulation.html
Reply With Quote
  #3 (permalink)  
Old 10-06-2008, 05:54 AM
Senior Member
 
Join Date: Mar 2008
Location: Dhaka, Bangladesh
Posts: 164
Default

Hi Erel,

Its not working as you suggested.
I add the image having the error message for you.

regards,
Reply With Quote
  #4 (permalink)  
Old 10-06-2008, 06:42 AM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 4,463
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default

You should use

Control(uy&vy).Visible=false

Best regards
__________________
Klaus
Switzerland

Beginner's Guide / User's Guide
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to transform a text in code? anjosafado Questions (Windows Mobile) 7 10-04-2008 01:43 PM
Update\Insert In SQLLite ceaser Questions (Windows Mobile) 1 10-02-2008 02:58 PM
Clearing a combobox's text area in code Ricky D Questions (Windows Mobile) 6 10-02-2008 09:31 AM
Coverting text files with binary file page code functionality kolbe Code Samples & Tips 1 06-21-2008 05:06 PM
Dividing the code into text files... Cableguy Questions (Windows Mobile) 5 05-21-2007 03:21 PM


All times are GMT. The time now is 02:37 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0