I would like to create a text variable that has 255 characters. If it isn't posssible what other options do I have?
8 11392
I would like to create a text variable that has 255 characters. If it isn't posssible what other options do I have?
It is possible and what it is called is declaring a Variable as a Fixed Length String. Whatever spaces are not used within the Variable are padded: - Dim strYourVariable As String * 255
-
strYourVariable = "Philadelphia"
'Philadelphia consists of 12 Bytes while strYourVariable consist of 255 Bytes
'(12 for Philadelphia and 243 'padded spaces') - Debug.Print Len(strYourVariable) 'will output 255
NOTE: A Fixed Length String can contain 1 to approximately 64K (2^16) characters.
Hi,
If you want to create text variable more than 255 characters then use memo instead of text it has 65535
try this option it might work
thanks & bye
kartik
And exactly how would you Dim that variable, kartik?
Hi,
If you want to create text variable more than 255 characters then use memo instead of text it has 65535
try this option it might work
thanks & bye
kartik
You cannot Declare a Variable as Type Memo - no such animal exists.
Thanks everyone, I just seperated the variable into a couple different ones.
Thanks everyone, I just seperated the variable into a couple different ones.
Glad to help.
And exactly how would you Dim that variable, kartik?
You don't require dim option here. no coding required.
simply create a table you need create field name next to field go to data type and select memo instead of text
Thanks & Bye
Kartik
You don't require dim option here. no coding required.
simply create a table you need create field name next to field go to data type and select memo instead of text
Thanks & Bye
Kartik
You misunderstood what missinglinq was talking about. A variable is not the same thing as a field.
A variable is Dimmed through code and as such there is no Memo variable.
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Carramba |
last post by:
Hi!
I am wondering what is the best way to control that compiler manage
variable names longer then 8 signs.
Does it enought to set 2 variables with the same name and difference after
8 sign and...
|
by: IC |
last post by:
Hello,
When debugging a SQL sproc in VS.NET, is there a way to get the debugger to
retrieve the full value of a SQL variable if its content is longer than 256
characters?
I currently have a...
|
by: Zenu |
last post by:
Hi,
I have a system with very long paths and I'm trying to use
file.exist(Longpath) to test the paths existance but it gives a message that
the path is too long.
Can someone tell me how to...
|
by: John |
last post by:
Does the length of my C variable names have any affect, performance-wise, on
my final executable program? I mean, once compiled, etc., is there any
difference between these two:
number = 3;
n =...
|
by: Naresh1 |
last post by:
What is WebLogic Admin Training?
WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
|
by: antdb |
last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine
In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
|
by: BLUEPANDA |
last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
|
by: Rahul1995seven |
last post by:
Introduction:
In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...
|
by: Ricardo de Mila |
last post by:
Dear people, good afternoon...
I have a form in msAccess with lots of controls and a specific routine must be triggered if the mouse_down event happens in any control.
Than I need to discover what...
|
by: Johno34 |
last post by:
I have this click event on my form. It speaks to a Datasheet Subform
Private Sub Command260_Click()
Dim r As DAO.Recordset
Set r = Form_frmABCD.Form.RecordsetClone
r.MoveFirst
Do
If...
|
by: ezappsrUS |
last post by:
Hi,
I wonder if someone knows where I am going wrong below. I have a continuous form and two labels where only one would be visible depending on the checkbox being checked or not. Below is the...
|
by: jack2019x |
last post by:
hello, Is there code or static lib for hook swapchain present?
I wanna hook dxgi swapchain present for dx11 and dx9.
|
by: F22F35 |
last post by:
I am a newbie to Access (most programming for that matter). I need help in creating an Access database that keeps the history of each user in a database. For example, a user might have lesson 1 sent...
| |