Jump to content
Server Maintenance This Week. ×

How to code a forced tab in a CF?


This topic is 5102 days old. Please don't post here. Open a new topic instead.

Recommended Posts

I'm stuck: I want to use a pipe symbol "|" to represent a forced tab character (Ctrl + Tab in Windows, Option+Tab in Mac) in a Let statement (to be used in text block-related calcs in a solution) but I just can't seem to nail it. How do I code that?

TIA for your help!

Link to comment
Share on other sites

Not quite, Mr. C.

Just as an example, say the current calc for the text block is:

Field1_text & " " & Field2_text & " " Field3_text

...where between the quotation marks is a forced tab. Also, the text block has tab marks/positions that aren't a fixed distance from each other character-wise.

So instead of having a blank space between the quotation marks I want a pipe symbol so I _know_ there's a forced tab between the fields (and that a forced tab is inserted between the fields.) Maybe the calc would look like this:

Field1_text & "|" & Field2_text & "|" Field3_text

...or this?

Field1_text & | & Field2_text & | Field3_text

Link to comment
Share on other sites

So where is the "not quite" part?

Instead of:


Field1_text & "" & Field2_text & "" Field3_text




write:





Let ( 

| = ""

;

Field1_text & | & Field2_text & | Field3_text

)




or (in version 10 and later):





Let ( 

| = Char(9)

;

Field1_text & | & Field2_text & | Field3_text

)

Link to comment
Share on other sites

This topic is 5102 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.