gjoisa Active Member Licensed User Longtime User Sep 29, 2011 #1 How to split a long code line ? I have a string array , with an index of 50 strings . I want to split the code line .:sign0085:
How to split a long code line ? I have a string array , with an index of 50 strings . I want to split the code line .:sign0085:
pluton Active Member Licensed User Longtime User Sep 29, 2011 #3 Use underscores B4X: words = Array As String _ ("First ", flavor.", _ "Some.", _ "Other", _ "Words.", _ "I don't know.", _ "Why ") Upvote 0
Use underscores B4X: words = Array As String _ ("First ", flavor.", _ "Some.", _ "Other", _ "Words.", _ "I don't know.", _ "Why ")
R Rui Member Licensed User Longtime User Sep 29, 2011 #4 You can also use the colon : to join two lines B4X: Dim Undo As Boolean: Undo=True Last edited: Sep 29, 2011 Upvote 0
dexMilano Active Member Licensed User Longtime User Dec 9, 2013 #5 Sorry, I tried to use this approach to slit lines in a type declaration but I've an error. Is it possible to do it? B4X: Type the_activity _ (activity_id As Int, _ 'standard activity fields title As String, _ description As String, _ notes As String, _ status As Int) Thanks dex Upvote 0
Sorry, I tried to use this approach to slit lines in a type declaration but I've an error. Is it possible to do it? B4X: Type the_activity _ (activity_id As Int, _ 'standard activity fields title As String, _ description As String, _ notes As String, _ status As Int) Thanks dex
M Mahares Expert Licensed User Longtime User Dec 9, 2013 #6 This should work for you: B4X: Type the_activity _ (activity_id As Int, _ title As String, _ description As String, _ notes As String, _ status As Int) 'standard activity fields Upvote 0
This should work for you: B4X: Type the_activity _ (activity_id As Int, _ title As String, _ description As String, _ notes As String, _ status As Int) 'standard activity fields
dexMilano Active Member Licensed User Longtime User Dec 9, 2013 #7 You're right Mahares so I cannot put comments in the middle. it could be useful to split logically the groups. Any possibility to do something similar? Thanks dex Upvote 0
You're right Mahares so I cannot put comments in the middle. it could be useful to split logically the groups. Any possibility to do something similar? Thanks dex
Beja Expert Licensed User Longtime User Dec 9, 2013 #8 Remember to make a space before the underscore... B4X: 'wrong split example: aString () = "abc",_ "def" B4X: 'Correct split example: aString () = "abc", _ "def" Upvote 0
Remember to make a space before the underscore... B4X: 'wrong split example: aString () = "abc",_ "def" B4X: 'Correct split example: aString () = "abc", _ "def"